Merge pull request #492 from KDAB/fix-default-visibility
Correctly set default visibility on non-windows compilers
This commit is contained in:
commit
bcf483c3b7
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue