diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-03-15 04:16:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-03-15 04:16:19 +0100 |
commit | ba64bc2432e1c903bfd99477d31736db227171b7 (patch) | |
tree | 5780ba41dbd08fd14cd5d56e17c88242ba8228f6 | |
parent | 4ffc8c28bfa1d43c91e69b51951e5461d28f6e84 (diff) |
cmake: fix MSVC build typeopentrack-2.3-rc21p11
-rwxr-xr-x[-rw-r--r--] | cmake/opentrack-version.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake index 268a5531..d0978033 100644..100755 --- a/cmake/opentrack-version.cmake +++ b/cmake/opentrack-version.cmake @@ -7,11 +7,13 @@ if(GIT_FOUND) endif() unset(_build_type) -string(TOUPPER ${CMAKE_BUILD_TYPE} _build_type) -if (NOT _build_type STREQUAL "DEBUG") - unset(_build_type) -else() - set(_build_type "${_build_type}-") +if(NOT MSVC) + 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 \"${_build_type}${OPENTRACK_COMMIT}\"") |