Merge pull request #46 from xpol/fixes-vs-static-compile-warnings

Fixes visual studio static compile warings about dll interface.
This commit is contained in:
Thomas Fussell 2016-06-11 11:12:26 -04:00 committed by GitHub
commit 8a22245e25

View File

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