diff options
Diffstat (limited to 'cmake/mbgl.cmake')
-rw-r--r-- | cmake/mbgl.cmake | 3 |
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. |