summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-12-03 21:53:44 -0500
committerJason Wray <friedbunny@users.noreply.github.com>2018-12-05 12:34:39 -0500
commit29c6647e139635a0abdf92e85698921ffdf94e72 (patch)
tree08aa847f5f8d8dd4b91748546e62c93f21a71e4d /cmake
parentffe0624d77f54e00e141b6c6f85f159a28cf0e90 (diff)
downloadqtlocation-mapboxgl-29c6647e139635a0abdf92e85698921ffdf94e72.tar.gz
[core, build] Disable GCC_GENERATE_DEBUGGING_SYMBOLS for Release
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mbgl.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index 8eb065dd09..8e6f11c823 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -211,8 +211,8 @@ function(initialize_xcode_cxx_build_settings target)
# -flto
set_xcode_property(${target} LLVM_LTO $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>:YES>)
- # Make releases debuggable.
- set_xcode_property(${target} GCC_GENERATE_DEBUGGING_SYMBOLS YES)
+ # Make all build configurations debuggable — except Release.
+ set_xcode_property(${target} GCC_GENERATE_DEBUGGING_SYMBOLS $<$<NOT:$<CONFIG:Release>>:YES>)
endfunction()
# CMake 3.1 does not have this yet.