From: Moritz Bunkus Date: Mon, 22 Jun 2020 10:18:04 +0000 (+0200) Subject: CMakeLists.txt: set default visibility to hidden X-Git-Tag: release-1.6.0~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5220e024934162e50ef5092c72659d84deed56d;p=libmatroska CMakeLists.txt: set default visibility to hidden It will hide all symbols that are not marked with the MATROSKA_DLL_API macro. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 71b9031..613eab1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,10 @@ add_library(matroska ${libmatroska_SOURCES} ${libmatroska_PUBLIC_HEADERS} ${libm target_link_libraries(matroska PUBLIC EBML::ebml) set_target_properties(matroska PROPERTIES VERSION 7.0.0 - SOVERSION 7) + SOVERSION 7 + CXX_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON +) target_include_directories(matroska PRIVATE $