summaryrefslogtreecommitdiff
path: root/cmake/mbgl.cmake
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2019-06-14 09:20:10 -0700
committerGitHub <noreply@github.com>2019-06-14 09:20:10 -0700
commit9872416c1f6ea9bfa77060deccac17ce0354e561 (patch)
tree9bfe97471acbe1678aff36a06e2cbdc68088abaa /cmake/mbgl.cmake
parentd7ac45da332a6606af36793f494bce8ef19f3f01 (diff)
downloadqtlocation-mapboxgl-9872416c1f6ea9bfa77060deccac17ce0354e561.tar.gz
[build, darwin] Enable aggressive API usage warnings
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 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()