diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2019-06-14 09:20:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 09:20:10 -0700 |
commit | 9872416c1f6ea9bfa77060deccac17ce0354e561 (patch) | |
tree | 9bfe97471acbe1678aff36a06e2cbdc68088abaa /cmake/mbgl.cmake | |
parent | d7ac45da332a6606af36793f494bce8ef19f3f01 (diff) | |
download | qtlocation-mapboxgl-9872416c1f6ea9bfa77060deccac17ce0354e561.tar.gz |
[build, darwin] Enable aggressive API usage warnings
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 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() |