diff options
author | Julian Xhokaxhiu <julianxhokaxhiu@users.noreply.github.com> | 2020-07-06 10:22:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 10:22:21 +0200 |
commit | 5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add (patch) | |
tree | 10918fecdcb0ddf552acfdf3ad36052d7323298e | |
parent | 23ca940487565e1216e045b152b44264f9387024 (diff) | |
download | pugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.zip pugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.tar.gz pugixml-5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add.tar.bz2 |
[Cmake] Static build should not export APIs
Fixes #359
-rw-r--r-- | CMakeLists.txt | 3 |
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} |