From 0c9bfadb62720822098f89b5434f56eca842192e Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 15 Oct 2020 02:26:04 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53101ee3a..99ba3fd6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,12 @@ 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) set(KF5_MIN_VERSION "5.36.0") @@ -29,7 +35,7 @@ endif() include(KDEConnectMacros.cmake) -ecm_setup_version(1.4.0 +ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KDECONNECT VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h )