Commit c91a54db authored by Alexander Neundorf's avatar Alexander Neundorf

find_package: error out if REQUIRED Config has not been found

If in Config mode a configuration file could not be found, cmake printed
an error, but did not actually stop processing. With SetFatalErrorOccured
it does.

Alex
parent ec50093b
......@@ -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())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment