is_debug value depends of the CMAKE_BUILD_TYPE variable

This commit is contained in:
Axel Isouard 2017-02-05 16:01:59 +01:00
parent 9bf16c0940
commit fc4badad3d
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29

View file

@ -117,6 +117,10 @@ endif (LIBRARY_TYPE STREQUAL STATIC)
if (MSVC OR XCODE)
set(_GEN_ARGS ${_GEN_ARGS} is_debug=$<$<CONFIG:Debug>:true>$<$<CONFIG:Release>: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)