summaryrefslogtreecommitdiff
path: root/platform/macos
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-11 11:38:07 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-07-11 13:40:11 +0200
commit3f1c6dabf105f2463cb4955da4754228b02fac92 (patch)
treec2dae0a132ab8ac71b881502416d671c48951fa1 /platform/macos
parent5e2305fa5b361f13c26bcc6254e18889aaf3da67 (diff)
downloadqtlocation-mapboxgl-3f1c6dabf105f2463cb4955da4754228b02fac92.tar.gz
[build] add -fvisibility=hidden for all macOS targets to avoid linker warnings
Diffstat (limited to 'platform/macos')
-rw-r--r--platform/macos/config.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/macos/config.cmake b/platform/macos/config.cmake
index 33ab1d7c9e..de17dfb067 100644
--- a/platform/macos/config.cmake
+++ b/platform/macos/config.cmake
@@ -92,6 +92,9 @@ macro(mbgl_platform_glfw)
target_link_libraries(mbgl-glfw
PRIVATE mbgl-loop-darwin
)
+ target_compile_options(mbgl-glfw
+ PRIVATE -fvisibility=hidden
+ )
endmacro()
@@ -99,6 +102,9 @@ macro(mbgl_platform_render)
target_link_libraries(mbgl-render
PRIVATE mbgl-loop-darwin
)
+ target_compile_options(mbgl-render
+ PRIVATE -fvisibility=hidden
+ )
endmacro()
@@ -106,6 +112,9 @@ macro(mbgl_platform_offline)
target_link_libraries(mbgl-offline
PRIVATE mbgl-loop-darwin
)
+ target_compile_options(mbgl-offline
+ PRIVATE -fvisibility=hidden
+ )
endmacro()