Add cmake option for visibility=hidden

This commit is contained in:
Graham Perks 2011-09-09 10:17:54 -05:00
parent 686bcf55a9
commit 837c9ef288

View File

@ -11,6 +11,11 @@ else()
endif()
OPTION(ENABLE_STATIC_RUNTIME "Visual Studio, link with runtime statically" OFF)
option(VISIBILITY_HIDDEN "Build with -fvisibility=hidden" OFF)
if(VISIBILITY_HIDDEN)
add_definitions (-fvisibility=hidden)
endif()
option(BUILD_TESTS "Build the test suite" OFF)
option(BUILD_EXAMPLES "Build the examples" OFF)