summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-12-03 21:53:44 -0500
committerJason Wray <jason@mapbox.com>2018-12-04 17:24:20 -0500
commit25aa0f84e048c93cb518bcff96f18858ea312461 (patch)
tree5201f8b072a93340db38c781e3e7251b9504fcd5
parent5ad825cb78254145cefc3d4ca80395cc2041d94e (diff)
downloadqtlocation-mapboxgl-25aa0f84e048c93cb518bcff96f18858ea312461.tar.gz
[core, build] Disable GCC_GENERATE_DEBUGGING_SYMBOLS for Release
-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.