libxml uses YAP internals-II

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

View File

@ -38,9 +38,11 @@ INCLUDE_DIRECTORIES(
) )
if (WIN32) if (WIN32)
ADD_LIBRARY(libxml2 OBJECT ${LIBXML2_SOURCES} ) ADD_LIBRARY(libxml2 OBJECT ${LIBXML2_SOURCES} )
set(YAP_SYSTEM_OPTIONS "libxml2 " ${YAP_SYSTEM_OPTIONS} PARENT_SCOPE)
set( CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${LIBXML2_LIBRARIES} )
else (WIN32) 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
@ -53,6 +55,7 @@ endif(WIN32)
${YAP_LIBRARY} ${YAP_LIBRARY}
) )
endif() endif()
endif(WIN32)
check_include_files( libxml2/libxml2.h HAVE_LIBXML2_LIBXML2_H ) check_include_files( libxml2/libxml2.h HAVE_LIBXML2_LIBXML2_H )