summaryrefslogtreecommitdiffstats
path: root/Help/command/cmake_policy.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-02 13:24:42 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-02 15:48:00 (GMT)
commitea6ad5e4be446d7c85bc19c7bc4ab5425f93c698 (patch)
tree57ce561dc8bc15704a13fbf8db04ea4a431386fd /Help/command/cmake_policy.rst
parent51e7d4150756a01d51da38acfd0a469b138e1fde (diff)
parent19f338109d8909feba37513285afe4a583811d54 (diff)
downloadCMake-ea6ad5e4be446d7c85bc19c7bc4ab5425f93c698.zip
CMake-ea6ad5e4be446d7c85bc19c7bc4ab5425f93c698.tar.gz
CMake-ea6ad5e4be446d7c85bc19c7bc4ab5425f93c698.tar.bz2
Merge branch 'policy_max_docs' into release-3.12
Merge-request: !2180
Diffstat (limited to 'Help/command/cmake_policy.rst')
-rw-r--r--Help/command/cmake_policy.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Help/command/cmake_policy.rst b/Help/command/cmake_policy.rst
index 6a8dd62..c3f7cfb 100644
--- a/Help/command/cmake_policy.rst
+++ b/Help/command/cmake_policy.rst
@@ -30,7 +30,10 @@ encourage projects to set policies based on CMake versions::
``major.minor[.patch[.tweak]]``, and the ``...`` is literal. The ``<min>``
version must be at least ``2.4`` and at most the running version of CMake.
The ``<max>`` version, if specified, must be at least the ``<min>`` version
-but may exceed the running version of CMake.
+but may exceed the running version of CMake. If the running version of
+CMake is older than 3.12, the extra ``...`` dots will be seen as version
+component separators, resulting in the ``...<max>`` part being ignored and
+preserving the pre-3.12 behavior of basing policies on ``<min>``.
This specifies that the current CMake code is written for the given
range of CMake versions. All policies known to the running version of CMake