Merge topic 'DocumentCMakeFindPackageName'

e2b1630 Document CMAKE_FIND_PACKAGE_NAME
This commit is contained in:
Brad King 2012-10-09 08:39:25 -04:00 committed by CMake Topic Stage
commit fb4de4495d
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ If neither the QUIET nor REQUIRED options are given then the
FindXXX.cmake module should look for the package and complain without FindXXX.cmake module should look for the package and complain without
error if the module is not found. error if the module is not found.
FIND_PACKAGE() will set the variable CMAKE_FIND_PACKAGE_NAME to
contain the actual name of the package.
A package can provide sub-components. A package can provide sub-components.
Those components can be listed after the COMPONENTS (or REQUIRED) Those components can be listed after the COMPONENTS (or REQUIRED)
or OPTIONAL_COMPONENTS keywords. The set of all listed components will be or OPTIONAL_COMPONENTS keywords. The set of all listed components will be