summaryrefslogtreecommitdiffstats
path: root/Help/dev
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-25 12:04:24 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-25 13:23:48 (GMT)
commit7b354baad55454e8ef441b0f8e195b93d5caa974 (patch)
tree615cd0bb5a07121a89aa7a09c65df11230123308 /Help/dev
parenta1c6d7e9af5a241b1afa29b3f7459ee9ee4ec77a (diff)
downloadCMake-7b354baad55454e8ef441b0f8e195b93d5caa974.zip
CMake-7b354baad55454e8ef441b0f8e195b93d5caa974.tar.gz
CMake-7b354baad55454e8ef441b0f8e195b93d5caa974.tar.bz2
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.
Diffstat (limited to 'Help/dev')
-rw-r--r--Help/dev/maint.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/dev/maint.rst b/Help/dev/maint.rst
index 1153a09..a1732c8 100644
--- a/Help/dev/maint.rst
+++ b/Help/dev/maint.rst
@@ -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::