diff options
author | Brad King <brad.king@kitware.com> | 2019-05-24 12:04:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-24 12:04:11 (GMT) |
commit | 3a0ab3ba2303784e20f1025cf3cd337d840a5b17 (patch) | |
tree | f08d499a2e9ca97829114a01514631c67d1f8416 /Utilities | |
parent | c22693b99df12f540480438275cd5bae1cfc5846 (diff) | |
download | CMake-3a0ab3ba2303784e20f1025cf3cd337d840a5b17.zip CMake-3a0ab3ba2303784e20f1025cf3cd337d840a5b17.tar.gz CMake-3a0ab3ba2303784e20f1025cf3cd337d840a5b17.tar.bz2 |
Utilities/Release: Teach upload script to compute version automatically
Read the version from `Source/CMakeVersion.cmake` instead of repeating it.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/Release/upload_release.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake index 3613ae7..d78e68a 100644 --- a/Utilities/Release/upload_release.cmake +++ b/Utilities/Release/upload_release.cmake @@ -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}) |