link expat correctly

This commit is contained in:
Thomas Fussell 2017-03-11 14:19:23 -05:00
parent 11fb80ceaf
commit eb078dce99

View File

@ -32,9 +32,10 @@ target_compile_definitions(libstudxml
PUBLIC LIBSTUDXML_STATIC_LIB=1 PUBLIC LIBSTUDXML_STATIC_LIB=1
PUBLIC LIBSTUDXML_EXTERNAL_EXPAT=1) PUBLIC LIBSTUDXML_EXTERNAL_EXPAT=1)
target_include_directories(libstudxml target_include_directories(libstudxml
PUBLIC ${LIBSTUDXML_ROOT_DIR}) PUBLIC ${LIBSTUDXML_ROOT_DIR}
PUBLIC ${EXPAT_INCLUDE_DIRS})
target_link_libraries(libstudxml target_link_libraries(libstudxml
PRIVATE expat) PRIVATE ${EXPAT_LIBRARIES})
if(NOT STATIC) if(NOT STATIC)
set_target_properties(libstudxml PROPERTIES POSITION_INDEPENDENT_CODE 1) set_target_properties(libstudxml PROPERTIES POSITION_INDEPENDENT_CODE 1)