mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
Merge topic 'find_package_fatal_error_if_required_and_config_not_found'
c5ae733find_package: Test that REQUIRED aborts processing correctlyc91a54dfind_package: error out if REQUIRED Config has not been found
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user