diff options
author | Brad King <brad.king@kitware.com> | 2006-01-27 18:07:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-01-27 18:07:23 (GMT) |
commit | 9f625beab63f07fd86e3664e3c6a311b33288e58 (patch) | |
tree | f4aae644fb50ebf891d3d81bec1b9fd9081f3550 /Source/cmFindPackageCommand.cxx | |
parent | 194b1b1e38924233e165c87d85d4602f05207a65 (diff) | |
download | CMake-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.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index c917ecc..15b6410 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -75,6 +75,11 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args) else if(args[i] == "REQUIRED") { required = true; + while (++i < args.size() && args[i] != "QUIET") + { + std::string req_var = Name + "_FIND_REQUIRED_" + args[i]; + m_Makefile->AddDefinition(req_var.c_str(), "1"); + } } else { |