summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-08-20 12:31:35 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-08-20 13:34:18 +0200
commit5c9970a74cf53914b521909a281bbebd842f51e2 (patch)
tree1b750f849330e310df803d588d9619ff0b569a0d
parent112bbc7ab289298094d6e6593437a71ec8029caa (diff)
downloadqtlocation-mapboxgl-upstream/xcode-debug-release.tar.gz
[build] also generate debugging symbols for Release builds in Xcodeupstream/xcode-debug-release
-rw-r--r--cmake/mbgl.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index 9dd29375ef..2381c01205 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -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.