Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Nastasi <nastasi@alternativeoutput.it>2016-12-04 16:57:51 +0300
committerMatteo Nastasi <nastasi@alternativeoutput.it>2016-12-04 16:57:51 +0300
commitf8e41b53405acf697fc9cd85e5f37bbb6b60af12 (patch)
tree8bdb387aaec14c68cd3e90fd0b45d4472e8e75c6 /CMakeLists.txt
parenta97eb33b66c43430c89b94810f5ee6e11ca5bd60 (diff)
updated cmake version management
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3cd22621..519c30edb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,7 +111,11 @@ set(REMMINA_VERSION_MAJOR "1")
set(REMMINA_VERSION_MINOR "2")
set(REMMINA_VERSION_REVISION "0")
set(REMMINA_VERSION_SUFFIX "rcgit-16")
-set(REMMINA_VERSION "${REMMINA_VERSION_MAJOR}.${REMMINA_VERSION_MINOR}.${REMMINA_VERSION_REVISION}-${REMMINA_VERSION_SUFFIX}")
+set(REMMINA_VERSION "${REMMINA_VERSION_MAJOR}.${REMMINA_VERSION_MINOR}.${REMMINA_VERSION_REVISION}")
+if (NOT ${REMMINA_VERSION_SUFFIX} STREQUAL "")
+ set(REMMINA_VERSION "${REMMINA_VERSION}-${REMMINA_VERSION_SUFFIX}")
+endif()
+
include(GetGitRevisionDescription)
git_get_exact_tag(GIT_REVISION --tags --always)