summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-26 16:19:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-07-26 16:19:25 (GMT)
commit8ce189720ee8daafed4848ee9eb970f9e0546578 (patch)
tree3f6be4b3116c6ea1c86af5466a20a7e3b7112f15
parent8fd481a899b651150d317cdfe448cbf628933e4d (diff)
parenteb5ea5a505378e02df4d7e142d174b8917a3ef14 (diff)
downloadCMake-8ce189720ee8daafed4848ee9eb970f9e0546578.zip
CMake-8ce189720ee8daafed4848ee9eb970f9e0546578.tar.gz
CMake-8ce189720ee8daafed4848ee9eb970f9e0546578.tar.bz2
Merge topic 'cmake-version-rc'
eb5ea5a505 CMakeVersion: Use '-rc0' version suffix on release branches prior to rc1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3609
-rw-r--r--Help/dev/maint.rst10
-rw-r--r--Source/CMakeVersion.cmake2
-rw-r--r--Source/CMakeVersionCompute.cmake2
3 files changed, 7 insertions, 7 deletions
diff --git a/Help/dev/maint.rst b/Help/dev/maint.rst
index a1732c8..75a1d68 100644
--- a/Help/dev/maint.rst
+++ b/Help/dev/maint.rst
@@ -178,7 +178,7 @@ Commit with a message such as::
the CMake Release Notes index page.
Update ``Source/CMakeVersion.cmake`` to set the version to
-``$major.$minor.0-rc1``:
+``$major.$minor.0-rc0``:
.. code-block:: cmake
@@ -186,7 +186,7 @@ Update ``Source/CMakeVersion.cmake`` to set the version to
set(CMake_VERSION_MAJOR $major)
set(CMake_VERSION_MINOR $minor)
set(CMake_VERSION_PATCH 0)
- set(CMake_VERSION_RC 1)
+ set(CMake_VERSION_RC 0)
Update uses of ``DEVEL_CMAKE_VERSION`` in the source tree to mention the
actual version number:
@@ -197,7 +197,7 @@ actual version number:
Commit with a message such as::
- CMake $major.$minor.0-rc1 version update
+ Begin $ver release versioning
Merge the ``release-$ver`` branch to ``master``:
@@ -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):
+``$major.$minor.$date``:
.. 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 0)
+ #set(CMake_VERSION_RC 0)
Commit with a message such as::
diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 942ead0..ea3b43a 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -2,4 +2,4 @@
set(CMake_VERSION_MAJOR 3)
set(CMake_VERSION_MINOR 15)
set(CMake_VERSION_PATCH 20190726)
-set(CMake_VERSION_RC 0)
+#set(CMake_VERSION_RC 0)
diff --git a/Source/CMakeVersionCompute.cmake b/Source/CMakeVersionCompute.cmake
index 72a5800..160f470 100644
--- a/Source/CMakeVersionCompute.cmake
+++ b/Source/CMakeVersionCompute.cmake
@@ -16,7 +16,7 @@ endif()
set(CMake_VERSION ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH})
if(CMake_VERSION_SOURCE)
set(CMake_VERSION_SUFFIX "${CMake_VERSION_SOURCE}")
-elseif(CMake_VERSION_RC)
+elseif(DEFINED CMake_VERSION_RC)
set(CMake_VERSION_SUFFIX "rc${CMake_VERSION_RC}")
else()
set(CMake_VERSION_SUFFIX "")