diff options
-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}\"") |