Commit 63bf00c2 authored by Albert Astals Cid's avatar Albert Astals Cid

Auto increment minuet version with each release

Otherwise we've had lots of releases with the same exact 0.4.0 version
parent f199854a
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(minuet)
set(CMAKE_AUTOMOC ON)
if(${CMAKE_VERSION} VERSION_GREATER "3.10.0")
cmake_policy(SET CMP0071 OLD)
......@@ -11,8 +9,10 @@ endif()
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}")
set (RELEASE_SERVICE_VERSION "0.4.0")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
set (MINUET_VERSION "0.4.0.${RELEASE_SERVICE_COMPACT_VERSION}")
project(minuet VERSION ${MINUET_VERSION})
set(ECM_MIN_VERSION "5.15.0")
set(QT_MIN_VERSION "5.7.0")
......@@ -29,7 +29,7 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(FeatureSummary)
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX MINUET
ecm_setup_version(${MINUET_VERSION} VARIABLE_PREFIX MINUET
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/app/minuet_version.h"
)
......
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