diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 01:47:47 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 01:50:50 +0100 |
commit | 8eee18f79c096c312dc1cedc2bf443b174437754 (patch) | |
tree | d189b2091ab3546c7901180df9220db855198157 /cmake | |
parent | 87dd9de5cd3a6ff1734815ae461e49c271e74a62 (diff) |
cmake: remove build type suffix
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-version.cmake | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake index a85d7ffe..ca6c70f6 100644 --- a/cmake/opentrack-version.cmake +++ b/cmake/opentrack-version.cmake @@ -6,19 +6,9 @@ if(GIT_FOUND) git_describe(OPENTRACK_COMMIT --tags --always) endif() -unset(_build_type) -if(CMAKE_BUILD_TYPE) - string(TOUPPER ${CMAKE_BUILD_TYPE} _build_type) - if (NOT _build_type STREQUAL "DEBUG") - unset(_build_type) - else() - set(_build_type "-${_build_type}") - endif() -endif() - -file(WRITE ${CMAKE_BINARY_DIR}/opentrack-version.h "#define OPENTRACK_VERSION \"${OPENTRACK_COMMIT}${_build_type}\"") +file(WRITE ${CMAKE_BINARY_DIR}/opentrack-version.hxx "#define OPENTRACK_VERSION \"${OPENTRACK_COMMIT}\"") -set(version-string " +set(version-string "\ #ifdef __cplusplus extern \"C\" #else @@ -26,8 +16,7 @@ extern #endif const char* const opentrack_version; - -const char* const opentrack_version = \"${OPENTRACK_COMMIT}${_build_type}\"; +const char* const opentrack_version = \"${OPENTRACK_COMMIT}\"; ") set(file "${CMAKE_CURRENT_BINARY_DIR}/version.cpp") |