diff --git a/CMakeLists.txt b/CMakeLists.txt index 17f67d1..d309509 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,9 @@ if (BUILD_SHARED_LIBS) ${PUGIXML_BUILD_DEFINES} ${PUGIXML_PUBLIC_DEFINITIONS} PRIVATE - $<$:PUGIXML_API=__declspec\(dllexport\)>) + $<$:PUGIXML_API=__declspec\(dllexport\)> + $,,PUGIXML_API=__attribute__\(\(visibility\("default"\)\)\)> + ) target_compile_options(pugixml-shared PRIVATE ${msvc-rt-mtd-shared}