aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECompilerSettings.cmake
AgeCommit message (Collapse)Author
2013-01-16 remove -Wl,--disable-auto-import on mingwPatrick von Reth
2012-11-23-we require cmake 2.8.9 here, so no need to support older versions hereAlex Neundorf
Alex
2012-08-17Enable the additional GCC compiler flags on all systems.Raphael Kubo da Costa
There was no reason to add more flags only on Linux/Hurd; in fact, in kdelibs' FindKDE4Internal.cmake there's also a block with similar settings for the BSDs. Make it more general by removing the system checks before setting these flags. -Wno-long-long is particularly needed when one is building code with -pedantic (see picmi, for example). CCMAIL: kde-buildsystem@kde.org
2012-08-17Drop -ansi from the default CXXFLAGS.Raphael Kubo da Costa
In preparation for making having the default CXXFLAGS available on all systems using GCC instead of only Linux/Hurd, remove -ansi from the CXXFLAGS. strtoll(3), used, for example, in kdelibs, is part of C99; -ansi means GCC will switch to C89 and C++98, which breaks things on systems such as FreeBSD. It worked on glibc-based systems because libstdc++ always defines _GNU_SOURCE on Linux, which ends up enabling additional features. This change should not break existing code, as dropping -ansi actually means being less strict than before. Discussed in the kde-buildsystem mailing list [1]. [1] http://lists.kde.org/?t=134482883000001&r=1&w=2 CCMAIL: kde-buildsystem@kde.org
2012-08-16Do not pass -lc to the compiler on BSD systems.Raphael Kubo da Costa
It is not completely clear why this flag was being specified in the first place: it was added in the commit that created FindKDE4.cmake (KDE SVN r497283), and seems to have been ported automatically from the autotools code. In autotools, its origins can be tracked back to KDE SVN r141814, which was a libtool update. In that case, -lc was only passed on AIX systems anyway.
2012-08-16Do not define _GNU_SOURCE on BSD systems.Raphael Kubo da Costa
This macro only makes sense on glibc-based systems, which honour that definition according to feature_test_macros(7).
2012-05-12rework of extra-cmake-modulesAlex Neundorf
-rename the cmake package from extra-cmake-modules to ECM -change variable names and docs accordingly -move setting of Qt-related defines from ECMQtFrameworks.cmake to KDECompilerSettings.cmake -remove ECMSetVersionVariables.cmake, we'll do it some other way -rename ECMConfig.cmake.in to ECMQtFrameworkConfig.cmake.in, since this is where it is used, and it would have the same name as ECMConfig.cmake.in which is for extra-cmake-modules itself Alex
2012-02-19-Werror=return-type is unrelated to the visibility testing stuffAlex Neundorf
Alex
2012-02-18-make it work with cmake 2.8.7, i.e. warn only instead of failingAlex Neundorf
Alex
2012-02-18-make use of the new KDE cmake modules in ECMQtFrameworkAlex Neundorf
ECMQtFramework.cmake now uses - KDEInstallDirs.cmake, so it doesn't have to define th install locations itself anymore - KDECompilerSettings.cmake, so it gets the full set we had in kdelibs4 - KDECMakeSettings, so it gets the full set of cmake features as before, and some more, RPATH, etc. Alex
2012-02-18-add KDECMakeSettings.cmake, move RPATH settings thereAlex Neundorf
Alex
2012-02-18-cosmeticsAlex Neundorf
-make some endif()s empty -set the linker flags on Linux in one step, not in two Alex
2012-02-17add a KDECompilerSettings.cmake, which contains the extracted compiler ↵Alex Neundorf
settings from FindKDE4Internal.cmake This is not done yet. It currently depends on cmake git master. All the places where I'm not sure I added a "TODO". Alex