|
@@ -1,24 +1,23 @@
|
|
|
CMAKE_VERSION
|
|
CMAKE_VERSION
|
|
|
-------------
|
|
-------------
|
|
|
|
|
|
|
|
-The CMake version string as up to four non-negative integer components
|
|
|
|
|
|
|
+The CMake version string as three non-negative integer components
|
|
|
separated by ``.`` and possibly followed by ``-`` and other information.
|
|
separated by ``.`` and possibly followed by ``-`` and other information.
|
|
|
-The first three components represent the feature level and the fourth
|
|
|
|
|
|
|
+The first two components represent the feature level and the third
|
|
|
component represents either a bug-fix level or development date.
|
|
component represents either a bug-fix level or development date.
|
|
|
|
|
|
|
|
Release versions and release candidate versions of CMake use the format::
|
|
Release versions and release candidate versions of CMake use the format::
|
|
|
|
|
|
|
|
- <major>.<minor>.<patch>[.<tweak>][-rc<n>]
|
|
|
|
|
|
|
+ <major>.<minor>.<patch>[-rc<n>]
|
|
|
|
|
|
|
|
-where the ``<tweak>`` component is less than ``20000000``. Development
|
|
|
|
|
|
|
+where the ``<patch>`` component is less than ``20000000``. Development
|
|
|
versions of CMake use the format::
|
|
versions of CMake use the format::
|
|
|
|
|
|
|
|
- <major>.<minor>.<patch>.<date>[-<id>]
|
|
|
|
|
|
|
+ <major>.<minor>.<date>[-<id>]
|
|
|
|
|
|
|
|
where the ``<date>`` component is of format ``CCYYMMDD`` and ``<id>``
|
|
where the ``<date>`` component is of format ``CCYYMMDD`` and ``<id>``
|
|
|
may contain arbitrary text. This represents development as of a
|
|
may contain arbitrary text. This represents development as of a
|
|
|
-particular date following the ``<major>.<minor>.<patch>`` feature
|
|
|
|
|
-release.
|
|
|
|
|
|
|
+particular date following the ``<major>.<minor>`` feature release.
|
|
|
|
|
|
|
|
Individual component values are also available in variables:
|
|
Individual component values are also available in variables:
|
|
|
|
|
|
|
@@ -35,6 +34,12 @@ strings as floating-point numbers.
|
|
|
|
|
|
|
|
.. note::
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
+ CMake versions 2.8.2 through 2.8.12 used three components for the
|
|
|
|
|
+ feature level. Release versions represented the bug-fix level in a
|
|
|
|
|
+ fourth component, i.e. ``<major>.<minor>.<patch>[.<tweak>][-rc<n>]``.
|
|
|
|
|
+ Development versions represented the development date in the fourth
|
|
|
|
|
+ component, i.e. ``<major>.<minor>.<patch>.<date>[-<id>]``.
|
|
|
|
|
+
|
|
|
CMake versions prior to 2.8.2 used three components for the
|
|
CMake versions prior to 2.8.2 used three components for the
|
|
|
feature level and had no bug-fix component. Release versions
|
|
feature level and had no bug-fix component. Release versions
|
|
|
used an even-valued second component, i.e.
|
|
used an even-valued second component, i.e.
|