summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-14 13:21:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-14 13:21:33 +0200
commit7ae267613d7ae2c2cb57aeafb1e9258209a62b5d (patch)
treed8d47cc5a403dcc6226247663be8ff7b909c33d6 /cmake
parent71b09cbdb0e86f8ae3349925359a511cd6134372 (diff)
cmake/version: don't use sole trailing hyphen with empty build typeopentrack-2.3-rc99p11
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-version.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake
index bb907525..a72347ee 100644
--- a/cmake/opentrack-version.cmake
+++ b/cmake/opentrack-version.cmake
@@ -11,7 +11,7 @@ if(CMAKE_BUILD_TYPE)
if (NOT _build_type STREQUAL "DEBUG")
unset(_build_type)
else()
- set(_build_type "${_build_type}")
+ set(_build_type "-${_build_type}")
endif()
endif()
@@ -29,7 +29,7 @@ extern
OPENTRACK_COMPAT_EXPORT
const char* opentrack_version;
-const char* opentrack_version = \"${OPENTRACK_COMMIT}-${_build_type}\";
+const char* opentrack_version = \"${OPENTRACK_COMMIT}${_build_type}\";
")
set(crapola-ver)