Skip to content
Snippets Groups Projects
Commit 811f0597 authored by marco's avatar marco
Browse files

turn on fvisibility=hidden on Mac

fvisibility=hidden decreases startup time of the program
considerably. Please try if it is possible to turn it on
by default on other platforms.

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1873 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent d3fb2cea
Branches
Tags
No related merge requests found
......@@ -147,11 +147,9 @@ endfunction()
if (CMAKE_COMPILER_IS_GNUCXX)
get_compiler_version(_GCC_VERSION)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
#if (_GCC_VERSION MATCHES "42")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
#else()
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fvisibility=hidden")
#endif()
if (APPLE AND NOT GCC_VERSION MATCHES "42")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
endif()
endif()
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment