summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-06-12 16:14:11 -0700
committerJason Wray <jason@mapbox.com>2019-06-12 16:26:17 -0700
commit512031a6144d2cf396fb5257b0b71d44f098f370 (patch)
tree7449aed2a8d75684e4bb9d51b68dbfa6eb18b252 /cmake
parent6b7d3a16c0e626d2f999e8358c4a0da2af75de87 (diff)
downloadqtlocation-mapboxgl-upstream/friedbunny-enables-wunguarded-availability.tar.gz
[build, darwin] Enable CLANG_WARN_UNGUARDED_AVAILABILITYupstream/friedbunny-enables-wunguarded-availability
Diffstat (limited to '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 ef948e6caf..1b4338a0bb 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -219,6 +219,9 @@ function(initialize_xcode_cxx_build_settings target)
# Make all build configurations debuggable — except Release.
set_xcode_property(${target} GCC_GENERATE_DEBUGGING_SYMBOLS $<$<NOT:$<CONFIG:Release>>:YES>)
+ # -Wunguarded-availability
+ set_xcode_property(${target} CLANG_WARN_UNGUARDED_AVAILABILITY YES_AGGRESSIVE)
+
if (DEFINED ENV{CI})
set_xcode_property(${target} COMPILER_INDEX_STORE_ENABLE NO)
endif()