Browse Source

cmake: fix symbol visibility

Avoid exposing unexported symbols, matches autotools behavior.
keep-around/d63ce04a93711820d9a6985b1d11d8d91ed8e6b6
Peter Wu 7 years ago
committed by Johan Pascal
parent
commit
697bf6653a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      CMakeLists.txt

+ 1
- 0
CMakeLists.txt View File

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


Loading…
Cancel
Save