Commit 3a0ab3ba authored by Brad King's avatar Brad King 💬

Utilities/Release: Teach upload script to compute version automatically

Read the version from `Source/CMakeVersion.cmake` instead of repeating it.
parent c22693b9
......@@ -188,12 +188,6 @@ Update ``Source/CMakeVersion.cmake`` to set the version to
set(CMake_VERSION_PATCH 0)
set(CMake_VERSION_RC 1)
Update ``Utilities/Release/upload_release.cmake``:
.. code-block:: cmake
set(VERSION $ver)
Update uses of ``DEVEL_CMAKE_VERSION`` in the source tree to mention the
actual version number:
......
set(CTEST_RUN_CURRENT_SCRIPT 0)
if(NOT VERSION)
set(VERSION 3.14)
include(${CMAKE_CURRENT_LIST_DIR}/../../Source/CMakeVersion.cmake)
set(VERSION ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR})
endif()
if(NOT DEFINED PROJECT_PREFIX)
set(PROJECT_PREFIX cmake-${VERSION})
......
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