summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-10 14:01:04 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-10 14:25:32 (GMT)
commit58ea0d12558b5607e81b1dfab1528bdf45393b3d (patch)
treef96e055f5e4d117e347627d4621742860c91fb52 /Source
parent693f4c70ffc8422bf053cae3e685d0f2620ddf7a (diff)
downloadCMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.zip
CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.gz
CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.bz2
Add deprecation warnings for policies CMP0081 and below
The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.13 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index e485986..b3bab04 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4387,7 +4387,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::CMP0075 &&
+ if (status == cmPolicies::OLD && id <= cmPolicies::CMP0081 &&
!(this->GetCMakeInstance()->GetIsInTryCompile() &&
(
// Policies set by cmCoreTryCompile::TryCompileCode.