[Cmake] Static build should not export APIs

Fixes #359
This commit is contained in:
Julian Xhokaxhiu 2020-07-06 10:22:21 +02:00 committed by GitHub
parent 23ca940487
commit 5fdc78b66b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,9 +100,6 @@ if (NOT BUILD_SHARED_LIBS OR BUILD_SHARED_AND_STATIC_LIBS)
target_include_directories(pugixml-static
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>)
target_compile_definitions(pugixml-static
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:PUGIXML_API=__declspec\(dllexport\)>)
target_compile_options(pugixml-static
PRIVATE
${msvc-rt-mtd-shared}