diff options
author | Brad King <brad.king@kitware.com> | 2003-07-16 18:52:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-07-16 18:52:51 (GMT) |
commit | 8ca5266645c5fa3d65728508a8eb3c6ebe30c1f6 (patch) | |
tree | 99ee3ea522cfb14be909638c0ae657b294cceaec /Source/cmFindPackageCommand.h | |
parent | c2b98959c5e0f18e289ab18ecb70484342fd4548 (diff) | |
download | CMake-8ca5266645c5fa3d65728508a8eb3c6ebe30c1f6.zip CMake-8ca5266645c5fa3d65728508a8eb3c6ebe30c1f6.tar.gz CMake-8ca5266645c5fa3d65728508a8eb3c6ebe30c1f6.tar.bz2 |
ENH: Added QUIET optional argument to block error message when _DIR variable is not set. Also removed upper-casing of package name.
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r-- | Source/cmFindPackageCommand.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index 73cb4a3..f559ee9 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -64,7 +64,7 @@ public: virtual const char* GetFullDocumentation() { return - " FIND_PACKAGE(<name> [major.minor])\n" + " FIND_PACKAGE(<name> [major.minor] [QUIET])\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 " @@ -76,7 +76,12 @@ public: "project built by CMake that has a \"<name>Config.cmake\" file. " "A cache entry called <name>_DIR is created and is expected to be set " "to the directory containing this file. If the file is found, it is " - "read and processed by CMake to load the settings of the package."; + "read and processed by CMake to load the settings of the package. If " + "<name>_DIR has not been set during a configure step, the command " + "will generate an error describing the problem unless the QUIET " + "argument is specified. If <name>_DIR has been set to a directory " + "not containing a \"<name>Config.cmake\" file, an error is always " + "generated."; } cmTypeMacro(cmFindPackageCommand, cmCommand); @@ -87,7 +92,6 @@ private: bool ReadListFile(const char* f); cmStdString Name; - cmStdString UpperName; cmStdString Variable; cmStdString Config; std::vector<cmStdString> Builds; |