Gn.cmake: Set is_debug depending on the IDE

This commit is contained in:
Axel Isouard 2017-03-19 11:56:21 +01:00
parent daf8535a2d
commit ea5d4643aa
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29

View file

@ -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=$<$<CONFIG:Debug>:true>$<$<CONFIG:Release>:false>$<$<CONFIG:RelWithDebInfo>:false>$<$<CONFIG:MinSizeRel>:false>)
elseif (CMAKE_BUILD_TYPE MATCHES Debug)
set(_GEN_ARGS "${_GEN_ARGS} is_debug=true")
else (MSVC OR XCODE)