diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-01-31 20:23:33 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-01-31 20:23:33 +0000 |
commit | ff3c21d2e0fe6b0accd73fa0dd54ac881a7c3fbe (patch) | |
tree | b2c71be9b7b8e8e49c306887969d7ff46be3c163 /modules/CheckPrototypeExists.cmake | |
parent | 85fb81dd64b58d3ce6c4a581e3057bb99732b2a5 (diff) | |
download | extra-cmake-modules-ff3c21d2e0fe6b0accd73fa0dd54ac881a7c3fbe.tar.gz extra-cmake-modules-ff3c21d2e0fe6b0accd73fa0dd54ac881a7c3fbe.tar.bz2 |
new cmake macro OptionalFindPackage.cmake featuring the new command optional_find_package(<name>)
e.g.
optional_find_package( ZLIB)
is the same as
option(WITH_ZLIB "Search for ZLIB package" ON)
if (WITH_ZLIB)
find_package(ZLIB)
endif (WITH_ZLIB)
This has the effect that all packages which are searched using this new command can be manually disabled
using "cmake <dir> -DWITH_<name>=OFF" (or using the cmake GUI)
This can be used to disable a package although it exists on the system.
The result <name>_FOUND can be used as usual with find_package() for further testing in the CMakeLists.txt
Alex
CCMAIL: kde-buildsystem@kde.org
svn path=/trunk/KDE/kdelibs/; revision=504336
The following changes were in SVN, but were removed from git:
M pics/CMakeLists.txt
Diffstat (limited to 'modules/CheckPrototypeExists.cmake')
0 files changed, 0 insertions, 0 deletions