diff options
author | Brad King <brad.king@kitware.com> | 2017-11-01 14:43:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-01 15:46:53 (GMT) |
commit | a0ec14d36361567e374672e0d115e584548702b8 (patch) | |
tree | c4fbff560cce9f0cadf602c73f48cbf26f0a096f /Source | |
parent | 9d742defd925e63eefe37e22f61c22bdec49c044 (diff) | |
download | CMake-a0ec14d36361567e374672e0d115e584548702b8.zip CMake-a0ec14d36361567e374672e0d115e584548702b8.tar.gz CMake-a0ec14d36361567e374672e0d115e584548702b8.tar.bz2 |
Add deprecation warnings for policies CMP0054 and below
The OLD behaviors of all policies are deprecated, but only by
documentation. Add an explicit deprecation diagnostic for some policies
to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 43c529c..9c8dae3 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4018,7 +4018,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::CMP0036) { + if (status == cmPolicies::OLD && id <= cmPolicies::CMP0054) { this->IssueMessage(cmake::DEPRECATION_WARNING, cmPolicies::GetPolicyDeprecatedWarning(id)); } |