mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 05:26:58 +08:00
find_package: CPS targets use CMP0200
Tweak CPS import to actually set CMP0200 NEW on targets imported from CPS (as the documentation claims we do).
This commit is contained in:
@@ -2107,7 +2107,10 @@ bool cmFindPackageCommand::ReadPackage()
|
|||||||
bool const hasComponentsRequested =
|
bool const hasComponentsRequested =
|
||||||
!this->RequiredComponents.empty() || !this->OptionalComponents.empty();
|
!this->RequiredComponents.empty() || !this->OptionalComponents.empty();
|
||||||
|
|
||||||
cmMakefile::CallRAII scope{ this->Makefile, this->FileFound, this->Status };
|
cmMakefile::CallRAII cs{ this->Makefile, this->FileFound, this->Status };
|
||||||
|
cmMakefile::PolicyPushPop ps{ this->Makefile };
|
||||||
|
|
||||||
|
this->Makefile->SetPolicy(cmPolicies::CMP0200, cmPolicies::NEW);
|
||||||
|
|
||||||
// Loop over appendices.
|
// Loop over appendices.
|
||||||
auto iter = this->CpsAppendices.begin();
|
auto iter = this->CpsAppendices.begin();
|
||||||
|
Reference in New Issue
Block a user