summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-04-18 04:15:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-04-18 04:15:09 +0200
commite7d309397921fd87ac41cef287d7adb4eda930dd (patch)
tree50fe5cca9fd1722c99a98c44211086b6cd3a1697
parentbe1b4e083d3599d4e0ad1f483ff5fe1f7ee1178f (diff)
cmake: fix expanding variable quoting bug
Closes #340
-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)