Commit d63ce04a authored by johan's avatar johan

Maintain symbol visibility when testing is enabled

parent f8ca5b8a
......@@ -66,7 +66,9 @@ else()
if (NOT IOS)
add_definitions("-Werror")
endif()
add_definitions("-fvisibility=hidden")
if(NOT ENABLE_TESTS) # test access inner functions so maintain visibility if we want to run tests
add_definitions("-fvisibility=hidden")
endif()
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