diff options
author | Raphael Kubo da Costa <kubito@gmail.com> | 2010-06-07 20:37:38 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <kubito@gmail.com> | 2010-06-07 20:37:38 +0000 |
commit | 48eab9f321582523eef6445e6c5baab8c3adb729 (patch) | |
tree | 4f1a91f1c63f102c0451f4f95e7d89b21d00c750 /modules/FindPythonLibrary.cmake | |
parent | 0f23ee767198999f8feac7d4053a78dbaec24409 (diff) | |
download | extra-cmake-modules-48eab9f321582523eef6445e6c5baab8c3adb729.tar.gz extra-cmake-modules-48eab9f321582523eef6445e6c5baab8c3adb729.tar.bz2 |
Check gcc's include path and add any previously missing entries to
CMAKE_{C,CXX}_IMPLICIT_INCLUDE_DIRECTORIES.
As discussed on the kde-buildsystem mailing list, this is particularly
useful on systems such as FreeBSD, which have most of the libraries and
headers installed in /usr/local: CMake would not add -I/usr/include when
compiling code, but would do that with other directories such as
/usr/local.
This, in turn, would sometimes make the system-wide includes be added to
the include path before the local ones, which can lead to compilation
failures.
With this patch, if CPATH is properly set, directories such as /usr/local/*
will not be added by CMake when gcc is invoked.
For now, this works only with gcc, but can be extended to other compilers
if necessary.
CCMAIL: kde-buildsystem@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1135642
Diffstat (limited to 'modules/FindPythonLibrary.cmake')
0 files changed, 0 insertions, 0 deletions