mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Utilities/Release: Teach upload script to compute version automatically
Read the version from `Source/CMakeVersion.cmake` instead of repeating it.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user