aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-05Remove commands that just set variables to their defaultsv0.0.10Alex Merry
REVIEW: 115477
2014-02-04Use the MSVC variable directly, instead of the compiler IDAlex Merry
This is cleaner and easier to read. REVIEW: 115378
2014-02-04Resolve some FIXMEs related to MSVC and IntelAlex Merry
In particular, MSVC (and Intel on Windows) have no equivalent of the -std flag to set the language standard, and Intel does not appear to produce the warnings that were disabled for MSVC. REVIEW: 115378
2014-02-04bump ecm to 0.0.10David Faure
2014-02-04Fix MSVC libc linkage for debug buildsAlex Richardson
Previously we would end up with both /DEFAULTLIB:msvcrt and /DEFAULTLIB:msvcrtd on the command line. As a result of the the programs would link to both the debug and the release C library and always crash soon after startup. REVIEW: 115456
2014-01-29Improve the compiler version checksAlex Merry
- Only warn if the compiler is not recent enough (it may still work...) - Bump up the GCC version to 4.5 (on Linux, at least) to match Qt - Add checks for Windows (both MSVC and MinGW) - Add check for Clang REVIEW: 115372
2014-01-29Check the C_COMPILER_ID when settings C_FLAGS, not CXX_COMPILER_IDAlex Merry
Not that anyone is likely to use different compilers for C and C++... REVIEW: 115379
2014-01-29KDE_SOURCE_FILES_ENABLE_EXCEPTIONS: Handle case where COMPILE_FLAGS is not setAurélien Gâteau
When COMPILE_FLAGS is not set, get_source_file_property(flags ${source_file} COMPILEFLAGS) set flags to "NOTFOUND". Leading to interesting build failures in kde-runtime when we then set flags to "NOTFOUND -fexceptions", see http://build.kde.org/job/kde-runtime_frameworks_qt5/58/ REVIEW: 115376
2014-01-29Move and comment -fno-common settingAlex Merry
REVIEW: 115363
2014-01-29Remove the allocator and visibility checkAlex Merry
I am reasonably sure the allocator check is out of date, given our minimum GCC version, and it was not used for anything interesting anyway. The visibility check will not be performed in practice, as this file will almost always be included before any check for Qt. REVIEW: 115360
2014-01-28Add a note about why we use C89 instead of C99Alex Merry
2014-01-28Do not explicitly link against libcAlex Merry
This is entirely unnecessary with any sane toolchain, and should be in the linker flags (rather than the compiler flags) for any system where it is required. REVIEW: 115362
2014-01-28Better documentation for system API definesAlex Merry
2014-01-27Organise KDECompilerSettings.cmake more logicallyAlex Merry
Very little should have changed in practice (apart from the Intel compiler stuff being properly separated between things for WIN32 and things for other platforms, and not defining _BSD_SOURCE).
2014-01-27Replace the KDE_ENABLE_EXCEPTIONS variable with a pair of functionsAlex Merry
kde_enable_exceptions() essentially does what set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE_ENABLE_EXCEPTIONS}") used to do. kde_target_enable_exceptions does it on a per-target basis.
2014-01-27Add system API feature macros to CMAKE_REQUIRED_DEFINESAlex Merry
Various defines we set affect the API offered by the system; subsequent CMake configure checks should happen in a matching environment. REVIEW: 115294
2014-01-26Replace the minimal README with a better README.md fileAlex Merry
2014-01-25This file provides the function ecm_generate_pri_file().David Faure
ECM_GENERATE_PRI_FILE() creates a .pri file for a library so that qmake-based apps can more easily use the library. It also sets ECM_MKSPECS_INSTALL_DIR as the directory to install the .pri file to. REVIEW: 115099
2014-01-25Make ECMSetupVersion set PROJECT_VERSION_*David Faure
This makes it easier for other functions to access the project version, for instance my upcoming ECM_GENERATE_PRI_FILE()
2014-01-23Only set QT_STRICT_ITERATORS when not compiling with MSVCAlex Richardson
On MSVC linker errors will happen when this flag is set (with Qt < 5.3) REVIEW: 115234
2014-01-22Mark target created by ecm_add_test as non GUI by defaultAlex Richardson
This behaviour can be overriden by passing the GUI flag to the command REVIEW: 115211
2014-01-20Use add_definitions directly, instead of via _KDE4_PLATFORM_DEFINITIONSAlex Merry
Setting the variable just leads to set() calls overwriting each other accidentally (as appeared to have happened in the WIN32 block). REVIEW: 114908
2014-01-20Remove KDE4 magic from _SET_FANCY in KDEInstallDirs.cmakeAlex Merry
This appears to be a hangover from the KDE4 days, which would adjust certain paths to match the ones for kdelibs if you installed an application to the same prefix as kdelibs. This was probably to make KStandardDirs work properly in unusual setups. REVIEW: 114904
2014-01-14substitute QT_USE_FAST_CONCATENATION with QT_USE_QSTRINGBUILDERMichal Humpula
REVIEW: 115012
2014-01-13Avoid '//' in paths in generated header filesDan Vrátil
REVIEW: 114888
2014-01-10Rename ECM_VERSION_* to PROJECT_VERSION_* to avoid confusion with ECM's own ↵David Faure
version This is all internal, doesn't change the API or effects of ecm_setup_version.
2014-01-08Add extracmakemodules to the TARGET_GROUPS for reviewboardAlex Merry
Three groups seems excessive, but they all seem like they should be there. Steve, do you have any opinion on this? CCMAIL: steveire@gmail.com
2014-01-07Do not set CMP0022Alex Merry
We do not want to suppress any warnings about LINK_INTERFACE_LIBRARIES vs INTERFACE_LINK_LIBRARIES; everything should be using the latter, since we depend on CMake 2.8.12 everywhere. REVIEW: 114903
2014-01-07Improve comments in KDECompilerSettings.cmakeAlex Merry
2014-01-07Remove commented-out manifest tool code from KDECompilerSettingsAlex Merry
This originally found the manifest tool from kdewin, which was then used by kde4_add_executable to embed a standard manifest file in applications, apparently allowing applications to have administrator privileges when run by an administrator. Given we do not have kde4_add_executable any more, this is useless (and certainly does not belong in this file). kdewin should provide any relevant manifest macros itself, in a KDEWinMacros.cmake file or some such, and these should be used on an as-needed basis for executables that require it.
2014-01-07Improve comments in RPATH section of KDECMakeSettingsAlex Merry
The old comments were somewhat out-of-date.
2014-01-07Remove use of obsolete add_compiler_export_flagsAlex Merry
Set CMAKE_CXX_VISIBILITY_PRESET and CMAKE_VISIBILITY_INLINES instead (which sets the default for all targets). Note that the removal of include(GenerateExportHeader) means that this will have to be explicitly included in the CMakeLists.txt of the frameworks (as they use generate_export_header). REVIEW: 114898
2014-01-07Remove custom build typesAlex Merry
KDECompilerSettings.cmake no longer alters CMake's built-in build types or adds its own. The "debug" build type therefore simply sets -g with no additional flags (rather than -O2 and, depending on the compiler, some no-inline/no-reorder flags as previously), the "release" build types no longer set -DQT_NO_DEBUG and the "debugfull", "profile" and "coverage" build types no longer exist. QT_NO_DEBUG is set by Qt's CMake scripts depending on the build type of Qt itself. "debugfull" mostly set -g3, allowing macro expansion when debugging; users can set this flag using environment variables if they wish. "RelWithDebugInfo" should be used instead of "profile" (according to dfaure); -fprofile-arcs and -ftest-coverage are easy enough to add to $CXX_FLAGS if they are required (formerly set by "profile" and "coverage"). You should now use cmake -DCMAKE_BUILD_TYPE=debug instead of cmake -DCMAKE_BUILD_TYPE=debugfull CCMAIL: kde-frameworks-devel@kde.org REVIEW: 114885
2014-01-07Add a .reviewboardrc fileAlex Merry
Reviewed by: Aurélien Gâteau <agateau@kde.org>
2014-01-07Add missing licence fileJonathan Riddell
2014-01-04remove compat var; moved up to kde4supportv0.0.9David Faure
2014-01-03Install all headers under FrameworkName, add optional PREFIX for namespaced ↵David Faure
headers
2013-12-27Add the REQUIRED_HEADERS and RELATIVE argumentsAleix Pol
RELATIVE is needed because some projects have their headers (and sources) split into different subdirectories. REQUIRED_HEADERS gives the opportunity to receive a list of all the headers we're depending on, in case the user wants to re-use it.
2013-12-17Do not break kdelibs build while we can't commit to itplasma2tpAurélien Gâteau
2013-12-17Rename KDE4_ENABLE_EXCEPTIONS to KDE_ENABLE_EXCEPTIONSAurélien Gâteau
REVIEW: 114501
2013-12-14Make the tests passAlbert Astals Cid
Since some cmake modules include others inside e-c-m we need to set the cmake module path so that they are found
2013-12-14Split Frameworks only definitions to a new fileAlbert Astals Cid
2013-12-12Install all includes in a KF5 dirAurélien Gâteau
REVIEW: 114336
2013-11-24Manually merge daa54a252 from kdelibs into this file.David Faure
Please check... CCMAIL: rakuco@FreeBSD.org
2013-11-05New function to create forward headersAleix Pol
Create ECM_GENERATE_HEADERS, a cmake function that will generate the forward headers like we used to, in cmake configure time. REVIEW: 113406
2013-11-04Improve documentation in ECMInstallIcons.cmakeDavid Edmundson
REVIEW: 113522
2013-11-02Remove ECMPrintVariables.Stephen Kelly
I can't find any use of it, which is semi-expected. It is replaced by CMakePrintHelpers.cmake in CMake upstream.
2013-11-02Remove FindKF5.cmake.Stephen Kelly
The functionality of it is now provided by a KF5Config.cmake file. Remember to remove it from your install prefix to avoid future confusion. CCMAIL: kde-frameworks-devel@kde.org
2013-11-02Enable C++11 support by default.Volker Krause
REVIEW: 113373
2013-10-29Add KDED in tier3 (where it will be)Àlex Fiestas