openwsman: cmake: pull libxml2 definitions
LibXML2 defines LIBXML_STATIC if compiled statically.
Allow OpenWsman to build with static LibXML2 by pulling
compile flags from LibXML2 package config.
@@ -30,6 +30,7 @@ ENDIF( ENABLE_EVENTING_SUPPORT )
ADD_LIBRARY( wsman ${wsman_SOURCES} )
TARGET_LINK_LIBRARIES( wsman ${LIBXML2_LIBRARIES} )
+ADD_DEFINITIONS( ${LIBXML2_DEFINITIONS} )
TARGET_LINK_LIBRARIES( wsman ${CMAKE_THREAD_LIBS_INIT} )
if( HAVE_LIBDL )
TARGET_LINK_LIBRARIES(wsman ${DL_LIBRARIES})
