Merge pull request #13478 from bloerwald/cmake/use_CMAKE_BUILD_TYPE_with_clang_as_well

cmake: use $CMAKE_BUILD_TYPE instead of $CONFIGURATION as BUILD_DIRECTIVE
This commit is contained in:
Duarte Duarte
2014-10-30 00:18:01 +00:00
+1 -1
View File
@@ -1,5 +1,5 @@
# Set build-directive (used in core to tell which buildtype we used)
add_definitions(-D_BUILD_DIRECTIVE='"$(CONFIGURATION)"')
add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"')
if(WITH_WARNINGS)
set(WARNING_FLAGS "-W -Wall -Wextra -Winit-self -Wfatal-errors")