mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
fix FeatureSummary for REQUIRED packages, they were reported as OPTIONAL
Alex
This commit is contained in:
parent
677047dda0
commit
e6c5b9452a
@ -1226,6 +1226,15 @@ void cmFindPackageCommand::AppendSuccessInformation()
|
||||
}
|
||||
this->Makefile->GetCMakeInstance()->SetProperty(versionInfoPropName.c_str(),
|
||||
versionInfo.c_str());
|
||||
if (this->Required)
|
||||
{
|
||||
std::string requiredInfoPropName = "_CMAKE_";
|
||||
requiredInfoPropName += this->Name;
|
||||
requiredInfoPropName += "_TYPE";
|
||||
this->Makefile->GetCMakeInstance()->SetProperty(
|
||||
requiredInfoPropName.c_str(), "REQUIRED");
|
||||
}
|
||||
|
||||
|
||||
// Restore original state of "_FIND_" variables we set.
|
||||
this->RestoreFindDefinitions();
|
||||
|
Loading…
Reference in New Issue
Block a user