summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-version.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-version.cmake')
-rwxr-xr-xcmake/opentrack-version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake
index d0978033..9a311ff9 100755
--- a/cmake/opentrack-version.cmake
+++ b/cmake/opentrack-version.cmake
@@ -7,7 +7,7 @@ if(GIT_FOUND)
endif()
unset(_build_type)
-if(NOT MSVC)
+if(CMAKE_BUILD_TYPE)
string(TOUPPER ${CMAKE_BUILD_TYPE} _build_type)
if (NOT _build_type STREQUAL "DEBUG")
unset(_build_type)