summaryrefslogtreecommitdiff
path: root/cmake/mbgl.cmake
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-31 15:35:17 -0700
committerGitHub <noreply@github.com>2018-07-31 15:35:17 -0700
commit9e3a4a2646533b5044b866a0c1932a1079a9c919 (patch)
tree179d28690eeab7aca98683eeb1c38f16ffa13d24 /cmake/mbgl.cmake
parent9bdd765a02de75851a00ab85223d5d582a104757 (diff)
downloadqtlocation-mapboxgl-9e3a4a2646533b5044b866a0c1932a1079a9c919.tar.gz
[ios, macos] Enable link-time optimization for iOS release builds (#12502)
Diffstat (limited to 'cmake/mbgl.cmake')
-rw-r--r--cmake/mbgl.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index 7f2eaf86b0..338c2fd708 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -203,6 +203,9 @@ macro(initialize_xcode_cxx_build_settings target)
# -Wrange-loop-analysis
set_xcode_property(${target} CLANG_WARN_RANGE_LOOP_ANALYSIS YES)
+
+ # -flto
+ set_xcode_property(${target} LLVM_LTO $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebugInfo>>:YES>)
endmacro(initialize_xcode_cxx_build_settings)
# CMake 3.1 does not have this yet.