From ea5d4643aa5ef1daac7f821ab5f1ed305a4d577e Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sun, 19 Mar 2017 11:56:21 +0100 Subject: [PATCH] Gn.cmake: Set is_debug depending on the IDE --- CMakeModules/Gn.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/Gn.cmake b/CMakeModules/Gn.cmake index cf52c5b..aa92c93 100644 --- a/CMakeModules/Gn.cmake +++ b/CMakeModules/Gn.cmake @@ -1,7 +1,7 @@ set(_GEN_ARGS "use_gold=false target_cpu=\\\"${TARGET_CPU}\\\" target_os=\\\"${TARGET_OS}\\\"") if (MSVC OR XCODE) - set(_GEN_ARGS "${_GEN_ARGS} is_debug=false") + set(_GEN_ARGS ${_GEN_ARGS} is_debug=$<$:true>$<$:false>$<$:false>$<$:false>) elseif (CMAKE_BUILD_TYPE MATCHES Debug) set(_GEN_ARGS "${_GEN_ARGS} is_debug=true") else (MSVC OR XCODE)