diff options
author | David Cole <david.cole@kitware.com> | 2012-03-08 20:14:23 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-08 20:14:23 (GMT) |
commit | fa0f0654262cd74824558c425083e22f091702e0 (patch) | |
tree | 4db05bf69daee1efebcc244e68f68539d5ea8726 /Source/cmFindPackageCommand.cxx | |
parent | da43d8fa8d96f5bb4363b3fd093af97c8735c432 (diff) | |
parent | c5ae73316634b0d1fe56272ab011eefd9cb80e47 (diff) | |
download | CMake-fa0f0654262cd74824558c425083e22f091702e0.zip CMake-fa0f0654262cd74824558c425083e22f091702e0.tar.gz CMake-fa0f0654262cd74824558c425083e22f091702e0.tar.bz2 |
Merge topic 'find_package_fatal_error_if_required_and_config_not_found'
c5ae733 find_package: Test that REQUIRED aborts processing correctly
c91a54d find_package: error out if REQUIRED Config has not been found
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index e807bd5..f17002e 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -1062,6 +1062,10 @@ bool cmFindPackageCommand::HandlePackageMode() this->Makefile->IssueMessage( this->Required? cmake::FATAL_ERROR : cmake::WARNING, e.str()); + if (this->Required) + { + cmSystemTools::SetFatalErrorOccured(); + } if (!aw.str().empty()) { |