summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-21 15:56:10 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-21 16:02:46 (GMT)
commit02587d80cf6d6250c461c0838180fc222dbce099 (patch)
tree9dcd0d28933528e4a08adfb3ecc4ecbd7ed29eda /Source/cmMakefile.cxx
parenteb08e68b77954a4b439ee66b4987789b213d878a (diff)
downloadCMake-02587d80cf6d6250c461c0838180fc222dbce099.zip
CMake-02587d80cf6d6250c461c0838180fc222dbce099.tar.gz
CMake-02587d80cf6d6250c461c0838180fc222dbce099.tar.bz2
Add deprecation warnings for policies CMP0066 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.7 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 0a0501b..1304986 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4287,7 +4287,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::CMP0065 &&
+ if (status == cmPolicies::OLD && id <= cmPolicies::CMP0066 &&
!(this->GetCMakeInstance()->GetIsInTryCompile() &&
(
// Policies set by cmCoreTryCompile::TryCompileCode.