diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2022-09-27 12:53:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 12:53:06 -0700 |
commit | bcf483c3b71ac592b058d145fe6a579642b798e8 (patch) | |
tree | 11d9cbd2c70e9b796f61c4d11f7b65eb9abfe416 | |
parent | 521b2cd854f8d65f173107d056d2b9c6d49b6563 (diff) | |
parent | 173a2634904875b0926615cc659e8f108115ea20 (diff) | |
download | pugixml-bcf483c3b71ac592b058d145fe6a579642b798e8.zip pugixml-bcf483c3b71ac592b058d145fe6a579642b798e8.tar.gz pugixml-bcf483c3b71ac592b058d145fe6a579642b798e8.tar.bz2 |
Merge pull request #492 from KDAB/fix-default-visibility
Correctly set default visibility on non-windows compilers
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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 - $<$<CXX_COMPILER_ID:MSVC>:PUGIXML_API=__declspec\(dllexport\)>) + $<$<CXX_COMPILER_ID:MSVC>:PUGIXML_API=__declspec\(dllexport\)> + $<IF:$<CXX_COMPILER_ID:MSVC>,,PUGIXML_API=__attribute__\(\(visibility\("default"\)\)\)> + ) target_compile_options(pugixml-shared PRIVATE ${msvc-rt-mtd-shared} |