summaryrefslogtreecommitdiffstats
path: root/Modules/readme.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-29 01:38:48 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-29 01:38:48 (GMT)
commit41c2895b7524cc4dc60225044a6bba99e0c048ab (patch)
tree55c46e2b65be4069f3f7d4a01646df32d67af0b1 /Modules/readme.txt
parent404db8811e4d6dc8ed89f4b1e3efafbb5985dc44 (diff)
downloadCMake-41c2895b7524cc4dc60225044a6bba99e0c048ab.zip
CMake-41c2895b7524cc4dc60225044a6bba99e0c048ab.tar.gz
CMake-41c2895b7524cc4dc60225044a6bba99e0c048ab.tar.bz2
ENH: Added version support to Config mode of find_package command.
- Added EXACT option to request an exact version. - Enforce version using check provided by package. - Updated FindPackageTest to test versioning in config mode.
Diffstat (limited to 'Modules/readme.txt')
-rw-r--r--Modules/readme.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/Modules/readme.txt b/Modules/readme.txt
index f94935f..8d4615a 100644
--- a/Modules/readme.txt
+++ b/Modules/readme.txt
@@ -67,19 +67,20 @@ line.
A FindXXX.cmake module will typically be loaded by the command
- FIND_PACKAGE(XXX [major[.minor[.patch]]]
+ FIND_PACKAGE(XXX [major[.minor[.patch]]] [EXACT]
[QUIET] [REQUIRED [components...]])
If any version numbers are given to the command it will set the
variable XXX_FIND_VERSION to contain the whole version. The variables
XXX_FIND_VERSION_MAJOR, XXX_FIND_VERSION_MINOR, and
XXX_FIND_VERSION_PATCH will be set to contain the corresponding
-portions of the version number. If the find module supports
-versioning it should locate a version of the package that is
-compatible with the version requested. If a compatible version of the
-package cannot be found the module should not report success. The
-version of the package found should be stored in the version variables
-named above.
+portions of the version number. The variable XXX_FIND_VERSION_EXACT
+will indicate whether an exact version is requested.
+If the find module supports versioning it should locate a version of
+the package that is compatible with the version requested. If a
+compatible version of the package cannot be found the module should
+not report success. The version of the package found should be stored
+in the version variables named above.
If the QUIET option is given to the command it will set the variable
XXX_FIND_QUIETLY to true before loading the FindXXX.cmake module. If