Fixes visual studio static compile warings about dll interface.

This commit is contained in:
Xpol Wan 2016-05-24 11:41:54 +08:00
parent 4e9c48eba9
commit 7290051f8e

View File

@ -102,6 +102,9 @@ endif()
if(STATIC) if(STATIC)
add_library(xlnt.static STATIC ${HEADERS} ${SOURCES} ${MINIZ} ${PUGIXML}) add_library(xlnt.static STATIC ${HEADERS} ${SOURCES} ${MINIZ} ${PUGIXML})
if(MSVC)
target_compile_definitions(xlnt.static PRIVATE XLNT_API=)
endif()
install(TARGETS xlnt.static install(TARGETS xlnt.static
LIBRARY DESTINATION ${LIB_DEST_DIR} LIBRARY DESTINATION ${LIB_DEST_DIR}
ARCHIVE DESTINATION ${LIB_DEST_DIR} ARCHIVE DESTINATION ${LIB_DEST_DIR}