compile libstudxml as pic when building shared xlnt [ci skip]

This commit is contained in:
Thomas Fussell 2017-01-21 18:38:58 -05:00
parent e4ec1a2850
commit 0def63d86f

View File

@ -56,3 +56,7 @@ add_custom_command(TARGET libstudxml-config PRE_BUILD
copy ${CMAKE_CURRENT_SOURCE_DIR}/../source/detail/xml/details/config.h
${LIBSTUDXML_ROOT_DIR}/xml/details)
add_dependencies(libstudxml libstudxml-config)
if(NOT STATIC)
set_target_properties(libstudxml PROPERTIES POSITION_INDEPENDENT_CODE 1)
endif()