[build] add -fvisibility=hidden for all macOS targets to avoid linker warnings

This commit is contained in:
Konstantin Käfer
2017-07-11 11:38:07 +02:00
parent 5e2305fa5b
commit 3f1c6dabf1

View File

@@ -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()