diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f5a8dd..e9f733d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,10 +19,6 @@ if(NOT MSVC) set(CMAKE_C_EXTENSIONS NO) endif() -# -fvisibility=hidden -set(CMAKE_C_VISIBILITY_PRESET hidden) -set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) - set(CMAKE_INCLUDE_CURRENT_DIR ON) # The Linux modules distributed with CMake add "-rdynamic" to the build flags diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 321b2b4..36ecbd6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -62,6 +62,10 @@ elseif (CMARK_SHARED) target_link_libraries(${PROGRAM} ${LIBRARY}) endif() +# -fvisibility=hidden +set(CMAKE_C_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + if (CMARK_SHARED) add_library(${LIBRARY} SHARED ${LIBRARY_SOURCES}) set_target_properties(${LIBRARY} PROPERTIES |