diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2017-09-19 19:27:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 19:27:02 (GMT) |
commit | b778ff4ccd23eb703dcf7180e6f9d410754719db (patch) | |
tree | 98b52cd9f3b9675ebdad226783e5ebf91d6877ff | |
parent | c627108f3315144f5d9fb84d0197502b939caf7d (diff) | |
parent | dcb3b2d0b888902a062eefd8200ea194ed1c42d6 (diff) | |
download | Doxygen-b778ff4ccd23eb703dcf7180e6f9d410754719db.zip Doxygen-b778ff4ccd23eb703dcf7180e6f9d410754719db.tar.gz Doxygen-b778ff4ccd23eb703dcf7180e6f9d410754719db.tar.bz2 |
Merge pull request #597 from evelikov/visibility-hidden
Use -fvisibility=hidden with GCC/Clang
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ed63320..05db71d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,13 @@ if (WIN32) endif() endif() +if(POLICY CMP0063) + cmake_policy(SET CMP0063 NEW) +endif() +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_C_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + if ("${CMAKE_GENERATOR}" MATCHES "Ninja") set(LEX_FLAGS ) set(YACC_FLAGS ) |