summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-07-02 21:14:28 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-07-02 21:14:28 (GMT)
commite4f603b698a13857e79a5f6df18a7461b20d4bd4 (patch)
tree83a4c2dfe14bced8a23129ed0aa3238e3baa384c /Source/cmakemain.cxx
parenta91d662f46fd2781fc5a3b73c2d244ac6dc2a343 (diff)
downloadCMake-e4f603b698a13857e79a5f6df18a7461b20d4bd4.zip
CMake-e4f603b698a13857e79a5f6df18a7461b20d4bd4.tar.gz
CMake-e4f603b698a13857e79a5f6df18a7461b20d4bd4.tar.bz2
Implement find-package mode of cmake
In find-package mode, cmake executes Modules/CMakeFindPackage.cmake, which calls find_package(), and this is then evaluated in cmake.cxx, which prints an appropriate message to stdout, so it can be used e.g. in a normal Makefile: $ /opt/cmake-HEAD/bin/cmake --find-package -DNAME=JPEG -DCOMPILER_ID=GNU -DLANGUAGE=C -DMODE=EXIST JPEG found. $ /opt/cmake-HEAD/bin/cmake --find-package -DNAME=JPEG -DCOMPILER_ID=GNU -DLANGUAGE=C -DMODE=COMPILE $ /opt/cmake-HEAD/bin/cmake --find-package -DNAME=JPEG -DCOMPILER_ID=GNU -DLANGUAGE=C -DMODE=LINK -rdynamic -ljpeg Alex
Diffstat (limited to 'Source/cmakemain.cxx')
0 files changed, 0 insertions, 0 deletions