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
This commit is contained in:
David Cole
2012-03-08 15:14:23 -05:00
committed by CMake Topic Stage
13 changed files with 30 additions and 3 deletions
+4
View File
@@ -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())
{