summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindPackageMode.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Fix --find-package mode on Cygwin, where enable_language(RC) is calledAlex Neundorf2011-08-221-0/+6
| | | | | | | | In --find-package mode we can't enable a language, since a lot of stuff has not been set up, e.g. which make tool to use. So disable enable_language() in this mode. Alex
* Require the current cmake version in --find-package modeAlex Neundorf2011-08-221-0/+3
| | | | | | | | This fixes the problem that otherwise Platforms/CYGWIN.cmake doesn't know whether it should set WIN32 or not. Now it uses always the current behaviour. Alex
* Dont check for -isysroot and -mmacosx-version on OSX in --find-package modeAlex Neundorf2011-08-151-0/+6
| | | | Alex
* Rename helper macros print_compile_flags() to set_compile_flags_var()Alex Neundorf2011-08-151-4/+4
| | | | | | | | The same for print_link_flags(), it is now set_link_flags_var(). Both macros don't print anything anymore, this was only in the beginning. Alex
* Improve documentation for --find-package modeAlex Neundorf2011-08-111-6/+10
| | | | Alex
* Add a cmake.m4 for using cmake in autoconf projects instead of pkgconfigAlex Neundorf2011-08-111-1/+1
| | | | | | | This file has been written today from scratch by Matthias Kretz and it BSD-licensed. Alex
* Use the file-utility to test for 64bit if there is no /usr/lib64Alex Neundorf2011-08-091-2/+9
| | | | Alex
* Better support for lib64 and Debian multiarchAlex Neundorf2011-08-091-3/+26
| | | | | | | | | | | | If CMAKE_SIZEOF_VOID_P is not set from the outside, it checks for the existance of /usr/lib64, and if it exists, SIZEOF_VOID_P is set to 8. For multiarch, if this is debian and CMAKE_${LANGUAGE}_LANGUAGE_ARCHITECTURE has not been set, it globs for the files in /lib, and uses the first one which matches CMAKE_LIBRARY_ARCHITECTURE_REGEX. Alex
* Fix copyright notice in new CMakeFindPackageMode.cmakeAlex Neundorf2011-08-091-0/+13
| | | | Alex
* Implement find-package mode of cmakeAlex Neundorf2011-07-021-0/+125
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