mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
try to link/export local expat correctly
This commit is contained in:
parent
5450a23be1
commit
a3bfd86828
8
third-party/libstudxml/CMakeLists.txt
vendored
8
third-party/libstudxml/CMakeLists.txt
vendored
|
@ -45,13 +45,15 @@ set(EXPAT
|
|||
|
||||
add_library(libstudxml OBJECT ${LIBSTUDXML} ${GENX} ${EXPAT})
|
||||
|
||||
target_compile_definitions(libstudxml
|
||||
PUBLIC LIBSTUDXML_STATIC_LIB=1
|
||||
PUBLIC XML_STATIC=1)
|
||||
target_compile_definitions(libstudxml PUBLIC LIBSTUDXML_STATIC_LIB=1)
|
||||
target_include_directories(libstudxml
|
||||
PUBLIC ${LIBSTUDXML_ROOT_DIR}
|
||||
PUBLIC ${EXPAT_INCLUDE_DIRS})
|
||||
|
||||
if(STATIC)
|
||||
target_compile_definitions(libstudxml PUBLIC XML_STATIC=1)
|
||||
endif()
|
||||
|
||||
# Prevent warning C4996 caused by strcpy, strncpy, sprintf in genx
|
||||
# TODO: would it be better to define this only in genx.c?
|
||||
if(MSVC)
|
||||
|
|
Loading…
Reference in New Issue
Block a user