[build] also generate debugging symbols for Release builds in Xcode

This commit is contained in:
Konstantin Käfer
2018-08-20 12:31:35 +02:00
parent ff077e9ea9
commit 036a75037a

View File

@@ -191,6 +191,9 @@ function(initialize_xcode_cxx_build_settings target)
# -flto
set_xcode_property(${target} LLVM_LTO $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebugInfo>>:YES>)
# Make releases debuggable.
set_xcode_property(${target} GCC_GENERATE_DEBUGGING_SYMBOLS YES)
endfunction()
# CMake 3.1 does not have this yet.