From cdda5249bda5d366e688ea07d9a8d4f0d4f3f05c Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Fri, 19 Aug 2016 12:14:50 +0200 Subject: [PATCH] CMake/Clang: fix build type variable --- modules/acore/cmake/compiler/clang/settings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/acore/cmake/compiler/clang/settings.cmake b/modules/acore/cmake/compiler/clang/settings.cmake index e18e45745..96aaa54fd 100644 --- a/modules/acore/cmake/compiler/clang/settings.cmake +++ b/modules/acore/cmake/compiler/clang/settings.cmake @@ -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 -Wno-mismatched-tags")