From 5fdc78b66b0b6c4ef8207cdbeaa68cc129b15add Mon Sep 17 00:00:00 2001 From: Julian Xhokaxhiu Date: Mon, 6 Jul 2020 10:22:21 +0200 Subject: [PATCH] [Cmake] Static build should not export APIs Fixes #359 --- CMakeLists.txt | 3 --- 1 file changed, 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 $) - target_compile_definitions(pugixml-static - PRIVATE - $<$:PUGIXML_API=__declspec\(dllexport\)>) target_compile_options(pugixml-static PRIVATE ${msvc-rt-mtd-shared}