From a5220e024934162e50ef5092c72659d84deed56d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 22 Jun 2020 12:18:04 +0200 Subject: [PATCH] CMakeLists.txt: set default visibility to hidden It will hide all symbols that are not marked with the MATROSKA_DLL_API macro. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 $ -- 2.40.0