mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
CMakeVersion: Set CMake_VERSION_RC to 0 even in non-rc versions
The logic that uses this value already ignores any "false" value, so `0` is just as good as not being set at all. Using `0` for this role makes the version components look more symmetric and reduces the number of edits needed when creating releases.
This commit is contained in:
@@ -217,7 +217,7 @@ note infrastructure and the version date from ``origin/master``:
|
||||
sed -i $'/^Releases/ i\\\n.. include:: dev.txt\\\n' Help/release/index.rst
|
||||
|
||||
Update ``Source/CMakeVersion.cmake`` to set the version to
|
||||
``$major.$minor.$date``:
|
||||
``$major.$minor.$date`` (and RC ``0`` to disable the suffix):
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
@@ -225,7 +225,7 @@ Update ``Source/CMakeVersion.cmake`` to set the version to
|
||||
set(CMake_VERSION_MAJOR $major)
|
||||
set(CMake_VERSION_MINOR $minor)
|
||||
set(CMake_VERSION_PATCH $date)
|
||||
#set(CMake_VERSION_RC 1)
|
||||
set(CMake_VERSION_RC 0)
|
||||
|
||||
Commit with a message such as::
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set(CMake_VERSION_MAJOR 3)
|
||||
set(CMake_VERSION_MINOR 15)
|
||||
set(CMake_VERSION_PATCH 20190725)
|
||||
#set(CMake_VERSION_RC 1)
|
||||
set(CMake_VERSION_RC 0)
|
||||
|
||||
Reference in New Issue
Block a user