libxml uses YAP internals

This commit is contained in:
Vítor Santos Costa 2016-02-29 08:00:00 +00:00
parent 638f784f81
commit b384c40213

View File

@ -36,8 +36,11 @@ INCLUDE_DIRECTORIES(
SET ( LIBXML2_SOURCES SET ( LIBXML2_SOURCES
xml2_yap.c xml2_yap.c
) )
if (WIN32)
ADD_LIBRARY(libxml2 OBJECT ${LIBXML2_SOURCES} )
else (WIN32)
ADD_LIBRARY(libxml2 SHARED ${LIBXML2_SOURCES} ) ADD_LIBRARY(libxml2 SHARED ${LIBXML2_SOURCES} )
endif(WIN32)
if(DEFINED YAP_MAJOR_VERSION) if(DEFINED YAP_MAJOR_VERSION)
TARGET_LINK_LIBRARIES(libxml2 TARGET_LINK_LIBRARIES(libxml2