From 5b8411277e44e92eea3b8e9469af003415c02a6f Mon Sep 17 00:00:00 2001 From: Jens Lorenz Date: Mon, 12 Feb 2018 17:45:56 +0100 Subject: CMake: Implement VCS agnostic versioning Versioning should not strictly depend on Version Control System (e.g. git). Best approach is to have a dedicated VERSION file exposing with format ... Target is that maintainer will manually release the version once patches/fixes are merged e.g. to a stabilization branch. In order to have an OEM specific meta information exposed with the version information EXTRAVERSIONINFO can be specified by CMAKE flag. Signed-off-by: Guerra Mattia --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 38d1a68..7e3bddb 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,10 @@ include ( MacroInterfaceVersions ) project(AudioManager LANGUAGES C CXX VERSION ${DAEMONVERSION}) +IF (NOT EXTRAVERSIONINFO) + ADD_DEFINITIONS(-DEXTRAVERSIONINFO="") +ENDIF (NOT EXTRAVERSIONINFO) + include ( CMakeDependentOption ) include ( CMakePackageConfigHelpers ) include ( GNUInstallDirs ) -- cgit v1.2.1