mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Merge topic 'deprecate-policy-old'
c78ae16d81 Add deprecation warnings for policies CMP0071 and below
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4369
This commit is contained in:
@@ -4492,7 +4492,7 @@ bool cmMakefile::SetPolicy(cmPolicies::PolicyID id,
|
||||
|
||||
// Deprecate old policies, especially those that require a lot
|
||||
// of code to maintain the old behavior.
|
||||
if (status == cmPolicies::OLD && id <= cmPolicies::CMP0069 &&
|
||||
if (status == cmPolicies::OLD && id <= cmPolicies::CMP0071 &&
|
||||
!(this->GetCMakeInstance()->GetIsInTryCompile() &&
|
||||
(
|
||||
// Policies set by cmCoreTryCompile::TryCompileCode.
|
||||
|
||||
Reference in New Issue
Block a user