aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Xhokaxhiu <julianxhokaxhiu@users.noreply.github.com>2020-07-06 10:22:21 +0200
committerGitHub <noreply@github.com>2020-07-06 10:22:21 +0200
commit5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add (patch)
tree10918fecdcb0ddf552acfdf3ad36052d7323298e
parent23ca940487565e1216e045b152b44264f9387024 (diff)
downloadpugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.zip
pugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.tar.gz
pugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.tar.bz2
[Cmake] Static build should not export APIs
Fixes #359
-rw-r--r--CMakeLists.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0254d8..06e7662 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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}