summaryrefslogtreecommitdiffstats
path: root/Help/command/cmake_minimum_required.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-06-30 22:05:01 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-07-01 22:41:46 (GMT)
commit19f338109d8909feba37513285afe4a583811d54 (patch)
tree57ce561dc8bc15704a13fbf8db04ea4a431386fd /Help/command/cmake_minimum_required.rst
parent51e7d4150756a01d51da38acfd0a469b138e1fde (diff)
downloadCMake-19f338109d8909feba37513285afe4a583811d54.zip
CMake-19f338109d8909feba37513285afe4a583811d54.tar.gz
CMake-19f338109d8909feba37513285afe4a583811d54.tar.bz2
Help: Clarify ...<max> behavior for policy-related commands
Affects cmake_minimum_required() and cmake_policy(VERSION)
Diffstat (limited to 'Help/command/cmake_minimum_required.rst')
-rw-r--r--Help/command/cmake_minimum_required.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/cmake_minimum_required.rst b/Help/command/cmake_minimum_required.rst
index 7c02190..2f1ab60 100644
--- a/Help/command/cmake_minimum_required.rst
+++ b/Help/command/cmake_minimum_required.rst
@@ -13,6 +13,10 @@ If the running version of CMake is lower than the ``<min>`` required
version it will stop processing the project and report an error.
The optional ``<max>`` version, if specified, must be at least the
``<min>`` version and affects policy settings as described below.
+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>``.
The ``FATAL_ERROR`` option is accepted but ignored by CMake 2.6 and
higher. It should be specified so CMake versions 2.4 and lower fail