handle libstudxml and expat configuration better

This commit is contained in:
Thomas Fussell 2017-03-17 18:21:22 -04:00
parent d7cd24c9f2
commit 9dccde4bff
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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 */