Fix ci [ci build]

This commit is contained in:
HALX99 2021-05-13 02:42:12 +08:00 committed by GitHub
parent fc3ffa3b5b
commit fdba046541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -32,5 +32,10 @@ set_target_properties(${target_name}
set_target_properties(${target_name} PROPERTIES set_target_properties(${target_name} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" 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()