12 lines
559 B
CMake
12 lines
559 B
CMake
FIND_PACKAGE(LibXml2)
|
|
IF(NOT LIBXML2_FOUND AND WIN32)
|
|
IF(LIBXML2_XMLLINT_EXECUTABLE AND LIBXML2_LIBRARIES)
|
|
GET_FILENAME_COMPONENT(_mpkg_libxml2_path ${LIBXML2_XMLLINT_EXECUTABLE} ABSOLUTE)
|
|
GET_FILENAME_COMPONENT(_mpkg_libxml2_path ${_mpkg_libxml2_path} PATH)
|
|
FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xpath.h HINTS ${_mpkg_libxml2_path}/../include PATH_SUFFIXES libxml2)
|
|
IF(LIBXML2_INCLUDE_DIR)
|
|
SET(LIBXML2_FOUND 1)
|
|
ENDIF(LIBXML2_INCLUDE_DIR)
|
|
ENDIF(LIBXML2_XMLLINT_EXECUTABLE AND LIBXML2_LIBRARIES)
|
|
ENDIF(NOT LIBXML2_FOUND AND WIN32)
|