From fdba046541b3c85f251d0ec364d3189a2f97d990 Mon Sep 17 00:00:00 2001 From: HALX99 Date: Thu, 13 May 2021 02:42:12 +0800 Subject: [PATCH] Fix ci [ci build] --- external/pugixml/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/external/pugixml/CMakeLists.txt b/external/pugixml/CMakeLists.txt index 3d3fbe9c0b..bb93d44f82 100644 --- a/external/pugixml/CMakeLists.txt +++ b/external/pugixml/CMakeLists.txt @@ -32,5 +32,10 @@ set_target_properties(${target_name} set_target_properties(${target_name} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" - INTERFACE_COMPILE_DEFINITIONS PUGIXML_API=__declspec\(dllimport\) ) + +if(BUILD_SHARED_LIBS AND MSVC) + set_target_properties(${target_name} PROPERTIES + INTERFACE_COMPILE_DEFINITIONS PUGIXML_API=__declspec\(dllimport\) + ) +endif()