Follow release service version numbers
Ever since joining the release service we never increased our version number on release. I've seen distros automatically apply the release service version scheme (20.0X) to the package, but when running e.g. kdeconnect-cli -v we'd still get 1.4. This way the version is automatically adjusted by the release tooling so we don't need to care about and cannot forget it any longer.
This commit is contained in:
parent
1f0bd42381
commit
0c9bfadb62
1 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,12 @@
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
|
||||||
project(kdeconnect)
|
# KDE Release Service Version, managed by release script
|
||||||
|
set (RELEASE_SERVICE_VERSION_MAJOR "20")
|
||||||
|
set (RELEASE_SERVICE_VERSION_MINOR "11")
|
||||||
|
set (RELEASE_SERVICE_VERSION_MICRO "70")
|
||||||
|
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
|
||||||
|
|
||||||
|
project(kdeconnect VERSION ${RELEASE_SERVICE_VERSION})
|
||||||
|
|
||||||
if (SAILFISHOS)
|
if (SAILFISHOS)
|
||||||
set(KF5_MIN_VERSION "5.36.0")
|
set(KF5_MIN_VERSION "5.36.0")
|
||||||
|
@ -29,7 +35,7 @@ endif()
|
||||||
|
|
||||||
include(KDEConnectMacros.cmake)
|
include(KDEConnectMacros.cmake)
|
||||||
|
|
||||||
ecm_setup_version(1.4.0
|
ecm_setup_version(${RELEASE_SERVICE_VERSION}
|
||||||
VARIABLE_PREFIX KDECONNECT
|
VARIABLE_PREFIX KDECONNECT
|
||||||
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h
|
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue