summaryrefslogtreecommitdiffstats
path: root/Help/release/dev/deprecate-policy-old.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-12 12:41:32 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-18 13:52:05 (GMT)
commit5845c218d771b517aa4294f0a90267e6f3f64891 (patch)
tree496f8fae5d48677d97df29b082771aa31fe76218 /Help/release/dev/deprecate-policy-old.rst
parent7b07ccdd2b8d621211ee1642e8b62b005b0cd60f (diff)
downloadCMake-5845c218d771b517aa4294f0a90267e6f3f64891.zip
CMake-5845c218d771b517aa4294f0a90267e6f3f64891.tar.gz
CMake-5845c218d771b517aa4294f0a90267e6f3f64891.tar.bz2
Deprecate compatibility with CMake versions older than 2.8.12
Issue a deprecation warning on calls to `cmake_minimum_required` or `cmake_policy` that set policies based on versions older than 2.8.12. Note that the effective policy version includes `...<max>` treatment. This is important in combination with commit ca24b70d31 (Export: Specify a policy range in exported files, 2020-05-16, v3.18.0-rc1~133^2).
Diffstat (limited to 'Help/release/dev/deprecate-policy-old.rst')
-rw-r--r--Help/release/dev/deprecate-policy-old.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/release/dev/deprecate-policy-old.rst b/Help/release/dev/deprecate-policy-old.rst
index f92aea7..1dc01cc 100644
--- a/Help/release/dev/deprecate-policy-old.rst
+++ b/Help/release/dev/deprecate-policy-old.rst
@@ -6,3 +6,8 @@ deprecate-policy-old
The :manual:`cmake-policies(7)` manual explains that the OLD behaviors
of all policies are deprecated and that projects should port to the
NEW behaviors.
+
+* Compatibility with versions of CMake older than 2.8.12 is now deprecated
+ and will be removed from a future version. Calls to
+ :command:`cmake_minimum_required` or :command:`cmake_policy` that set
+ the policy version to an older value now issue a deprecation diagnostic.