mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
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:
commit
8a22245e25
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user