summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-01-27 18:07:23 (GMT)
committerBrad King <brad.king@kitware.com>2006-01-27 18:07:23 (GMT)
commit9f625beab63f07fd86e3664e3c6a311b33288e58 (patch)
treef4aae644fb50ebf891d3d81bec1b9fd9081f3550 /Source/cmFindPackageCommand.h
parent194b1b1e38924233e165c87d85d4602f05207a65 (diff)
downloadCMake-9f625beab63f07fd86e3664e3c6a311b33288e58.zip
CMake-9f625beab63f07fd86e3664e3c6a311b33288e58.tar.gz
CMake-9f625beab63f07fd86e3664e3c6a311b33288e58.tar.bz2
ENH: Added optional component list to the REQUIRED option of the FIND_PACKAGE command. This addresses bug#2771.
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 9ea30d3..eadc0e8 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -65,7 +65,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " FIND_PACKAGE(<name> [major.minor] [QUIET] [REQUIRED])\n"
+ " FIND_PACKAGE(<name> [major.minor] [QUIET]\n"
+ " [REQUIRED [componets...]])\n"
"Finds and loads settings from an external project. <name>_FOUND will "
"be set to indicate whether the package was found. Settings that "
"can be used when <name>_FOUND is true are package-specific. The "
@@ -83,7 +84,9 @@ public:
"argument is specified. If <name>_DIR has been set to a directory "
"not containing a \"<name>Config.cmake\" file, an error is always "
"generated. If REQUIRED is specified and the package is not found, "
- "a FATAL_ERROR is generated and the configure step stops executing.";
+ "a FATAL_ERROR is generated and the configure step stops executing."
+ " A package-specific list of components may be listed after the "
+ "REQUIRED option.";
}
cmTypeMacro(cmFindPackageCommand, cmCommand);