summaryrefslogtreecommitdiffstats
path: root/Modules/FindPackageHandleStandardArgs.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Also store the required version number in the details message.Alex Neundorf2010-09-271-1/+1
| | | | | | | This way the success/failure message of FPHSA() is also printed again if the required version is changed. Alex
* Improve version notice in the generated messageAlex Neundorf2010-08-301-53/+61
| | | | | | | | | | Now the version number is also printed if no required version was specified, but a version number was detected (showing more information shouldn't hurt). The code for generating the failure message in config-mode is moved into a separate helper macro, it was becoming too much. Alex
* Add option CONFIG_MODE to FPHSA()Alex Neundorf2010-08-291-9/+55
| | | | | | | | When this option is used for FPHSA(), it automatically handles the information created by a preceding find_package(NO_MODULE) all and creates a proper success/error message. Alex
* Small cleanup of FindPackageHandleStandardArgs.cmakeAlex Neundorf2010-08-291-21/+17
| | | | | | | | -remove unnecessary arguments _VAR1 -move code for deciding the type of the message into helper macro _FPHSA_FAILURE_MESSAGE() Alex
* Add macro CMakeParseArguments() and use it in FPHSA()Alex Neundorf2010-08-141-71/+29
| | | | | | | | | This adds a macro cmake_parse_arguments() (as discussed on cmake-devel) which can be used in macros or functions to help with parsing its arguments. Detailled docs are included. find_package_handle_standard_args() is the first user of this new macro. Alex
* Merge topic 'ImprovedVersionCheckingInSomeModules'Brad King2010-08-101-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | 430336c Merge branch 'findsubversion_fphsa_cleanup' b6c6156 Use FPHSA() in FindSWIG, including version checking. 656cd2f Improved version checking for FindCUDA using the new mode of FPHSA 126db7b Improved version checking for FindSubversion using the new mode of FPHSA() 77d909b Fix DETAILS string with version number in FHPSA() 19b68b9 Improved version checking for FindJava using the new FPHSA() mode 6bb0b6e Improved version checking for FindRuby using the new mode of FPHSA() 946493f FindSquish doesn't detect the version, remove that from the documentation cb9d1ea Add version checking support to FindFlex and FindPerlLibs
| * Fix DETAILS string with version number in FHPSA()Alex Neundorf2010-08-071-1/+1
| | | | | | | | | | | | | | If found, the version which was found should be stored in the DETAILS string, but it was dereferenced twice, which was wrong. Alex
* | Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|/
* -fix indentation of the documentationAlex Neundorf2010-07-291-37/+39
| | | | Alex
* add 2nd, more powerful mode to find_package_handle_standard_args()Alex Neundorf2010-07-281-36/+206
| | | | | | | | | This additional mode also supports version checking and should be easily extendible, e.g. for COMPONENT stuff. Updated FindBISON.cmake as first user of this new mode. Docs updated. Alex
* Convert CMake find-modules to BSD LicenseBrad King2009-09-281-0/+13
| | | | | | | This adds copyright/license notification blocks CMake's find-modules. Many of the modules had no notices at all. Some had notices referring to the BSD license already. This commit normalizes existing notices and adds missing notices.
* BUG: fix #6375: print the variables which were not found, so it's easier toAlexander Neundorf2008-05-111-2/+7
| | | | | | see what went wrong Alex
* ENH: Added FindPackageMessage moduleBrad King2008-03-171-3/+7
| | | | | | | | - Defines FIND_PACKAGE_MESSAGE function to help display find result messages only once - Added use of it to FindPackageHandleStandardArgs - Added use of it to FindQt4, and FindX11 - This cleans up repeated messages in big projects
* STYLE: use a function instead of a macro, to keep FAIL_MESSAGE localAlexander Neundorf2008-02-061-2/+6
| | | | | | patch from Miguel Alex
* STYLE: fix typoAlexander Neundorf2007-08-071-1/+1
| | | | Alex
* ENH: add second failure message parameter toAlexander Neundorf2007-07-231-6/+16
| | | | | | | | FIND_PACKAGE_HANDLE_STANDARD_ARGS(), so cmake modules can specify their own better failure messages. If the default is ok use "DEFAULT_MSG". Do this also for FindBoost.cmake (#5349) Alex
* ENH: add a macro FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 LIBXML2_LIBRARIES ↵Alexander Neundorf2007-07-181-0/+44
LIBXML2_INCLUDE_DIR) which handles the required and QUIET arguments and sets <NAME>_FOUND Alex