Commit 697bf665 authored by Peter Wu's avatar Peter Wu Committed by johan

cmake: fix symbol visibility

Avoid exposing unexported symbols, matches autotools behavior.
parent 20838a5e
......@@ -66,6 +66,7 @@ else()
if (NOT IOS)
add_definitions("-Werror")
endif()
add_definitions("-fvisibility=hidden")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment