mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
handle libstudxml and expat configuration better
This commit is contained in:
parent
d7cd24c9f2
commit
9dccde4bff
2
third-party/libstudxml/CMakeLists.txt
vendored
2
third-party/libstudxml/CMakeLists.txt
vendored
|
@ -39,4 +39,6 @@ target_link_libraries(libstudxml
|
|||
|
||||
if(NOT STATIC)
|
||||
set_target_properties(libstudxml PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
||||
else()
|
||||
target_compile_definitions(libstudxml PUBLIC XML_STATIC=1)
|
||||
endif()
|
||||
|
|
6
third-party/libstudxml/xml/details/config.h
vendored
6
third-party/libstudxml/xml/details/config.h
vendored
|
@ -8,9 +8,7 @@
|
|||
#ifndef XML_DETAILS_CONFIG_H
|
||||
#define XML_DETAILS_CONFIG_H
|
||||
|
||||
#undef LIBSTUDXML_STATIC_LIB
|
||||
#define LIBSTUDXML_STATIC_LIB
|
||||
#undef LIBSTUDXML_EXTERNAL_EXPAT
|
||||
#undef LIBSTUDXML_BYTEORDER
|
||||
#define LIBSTUDXML_STATIC_LIB 1
|
||||
#define LIBSTUDXML_EXTERNAL_EXPAT 1
|
||||
|
||||
#endif /* XML_DETAILS_CONFIG_H */
|
||||
|
|
Loading…
Reference in New Issue
Block a user