diff options
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 { |