aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-04-09 00:40:43 +0200
committerShauren <shauren.trinity@gmail.com>2016-04-09 00:40:43 +0200
commit3ebec1e2ce708c4958082fbb8cc8759b955b00f5 (patch)
treef20affb5c0de703b0f645e0c672fa2c1baf1500f /cmake/compiler
parent509a27fd51a2f88c5c72c264d2a546229c9c0e00 (diff)
oops, pushed too soon (now with proper msbuild check)
Diffstat (limited to 'cmake/compiler')
-rw-r--r--cmake/compiler/msvc/settings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake
index a20cb32221e..ee8a1826ec5 100644
--- a/cmake/compiler/msvc/settings.cmake
+++ b/cmake/compiler/msvc/settings.cmake
@@ -32,7 +32,7 @@ endif()
# Set build-directive (used in core to tell which buildtype we used)
# msbuild/devenv don't set CMAKE_MAKE_PROGRAM, you can choose build type from a dropdown after generating projects
-if("${CMAKE_MAKE_PROGRAM}" STREQUAL "")
+if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild")
add_definitions(-D_BUILD_DIRECTIVE=\\"$(ConfigurationName)\\")
else()
# while all make-like generators do (nmake, ninja)