diff options
author | Brad King <brad.king@kitware.com> | 2019-10-07 17:26:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-17 16:44:57 (GMT) |
commit | c78ae16d81bd5fdc317d3d395978efcfcd6ec6cd (patch) | |
tree | 1c7f94380af028c425832b27b161fadbd29654fc /Source/cmMakefile.cxx | |
parent | 451360c72914d28cc10ba36d2215aed756e568e5 (diff) | |
download | CMake-c78ae16d81bd5fdc317d3d395978efcfcd6ec6cd.zip CMake-c78ae16d81bd5fdc317d3d395978efcfcd6ec6cd.tar.gz CMake-c78ae16d81bd5fdc317d3d395978efcfcd6ec6cd.tar.bz2 |
Add deprecation warnings for policies CMP0071 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.10 and below to encourage projects to port away
from setting policies to OLD.
Diffstat (limited to 'Source/cmMakefile.cxx')
-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 b2e59bd..ed627f8 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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. |