summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-08 20:14:23 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-08 20:14:23 (GMT)
commitfa0f0654262cd74824558c425083e22f091702e0 (patch)
tree4db05bf69daee1efebcc244e68f68539d5ea8726 /Source/cmFindPackageCommand.cxx
parentda43d8fa8d96f5bb4363b3fd093af97c8735c432 (diff)
parentc5ae73316634b0d1fe56272ab011eefd9cb80e47 (diff)
downloadCMake-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.cxx4
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())
{