]> granicus.if.org Git - libmatroska/commitdiff
CMakeLists.txt: set default visibility to hidden
authorMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 10:18:04 +0000 (12:18 +0200)
committerMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 10:18:04 +0000 (12:18 +0200)
It will hide all symbols that are not marked with the MATROSKA_DLL_API
macro.

CMakeLists.txt

index 71b903198e74c6f813e13ddcbf8eccef6c773e52..613eab17133c0e0212849b68d09d2c74f255af48 100644 (file)
@@ -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
     $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>