From fc4badad3d6882b3e3c75b23d76be19ab8cb7296 Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sun, 5 Feb 2017 16:01:59 +0100 Subject: [PATCH] is_debug value depends of the CMAKE_BUILD_TYPE variable --- Targets/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Targets/CMakeLists.txt b/Targets/CMakeLists.txt index 9c81f3a..fdcc2aa 100644 --- a/Targets/CMakeLists.txt +++ b/Targets/CMakeLists.txt @@ -117,6 +117,10 @@ endif (LIBRARY_TYPE STREQUAL STATIC) if (MSVC OR XCODE) set(_GEN_ARGS ${_GEN_ARGS} is_debug=$<$:true>$<$:false>) +elseif (CMAKE_BUILD_TYPE MATCHES Debug) + set(_GEN_ARGS ${_GEN_ARGS} is_debug=true) +else (MSVC OR XCODE) + set(_GEN_ARGS ${_GEN_ARGS} is_debug=false) endif (MSVC OR XCODE) if (WIN32)