summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-07 17:26:23 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-10 13:26:10 (GMT)
commitd00bb419ca5ccbecee892ce1f3e5fdd455c11ff0 (patch)
treefbc2ed1f960535d9ce8663680d3725033a66563a /Source/cmMakefile.cxx
parent4c29297495b53e07f61a6de1f5f689ddd6bab7bd (diff)
downloadCMake-d00bb419ca5ccbecee892ce1f3e5fdd455c11ff0.zip
CMake-d00bb419ca5ccbecee892ce1f3e5fdd455c11ff0.tar.gz
CMake-d00bb419ca5ccbecee892ce1f3e5fdd455c11ff0.tar.bz2
Add deprecation warnings for policies CMP0069 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.9 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index f143ef7..bf488b1 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4487,7 +4487,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::CMP0067 &&
+ if (status == cmPolicies::OLD && id <= cmPolicies::CMP0069 &&
!(this->GetCMakeInstance()->GetIsInTryCompile() &&
(
// Policies set by cmCoreTryCompile::TryCompileCode.