From ab0437db0eb7468cd94adb4e75cbcad2ff08abf5 Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Tue, 19 Dec 2023 05:03:33 +0100 Subject: [PATCH] Apply VISIBILITY_HIDDEN also to C++ files It was only used for C files, thereby making symbols of internal classes like TagUnion visible. --- taglib/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/taglib/CMakeLists.txt b/taglib/CMakeLists.txt index 891ad156..dc43fd32 100644 --- a/taglib/CMakeLists.txt +++ b/taglib/CMakeLists.txt @@ -362,6 +362,7 @@ set_target_properties(tag PROPERTIES ) if(VISIBILITY_HIDDEN) set_target_properties(tag PROPERTIES C_VISIBILITY_PRESET hidden) + set_target_properties(tag PROPERTIES CXX_VISIBILITY_PRESET hidden) endif() if(BUILD_FRAMEWORK)