Commit 7b354baa authored by Brad King's avatar Brad King

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.
parent a1c6d7e9
......@@ -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`` (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_PATCH 20190725)
#set(CMake_VERSION_RC 1)
set(CMake_VERSION_RC 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment