mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fixes visual studio static compile warings about dll interface.
This commit is contained in:
parent
4e9c48eba9
commit
7290051f8e
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user