Commit ee1202b4 authored by François Grisez's avatar François Grisez

Makes the Python wrapper to use the libxml2 provided by MacOSX

parent 8eb5e2e3
......@@ -26,13 +26,13 @@
# XML2_INCLUDE_DIRS - the libxml2 include directory
# XML2_LIBRARIES - The libraries needed to use libxml2
set(_XML2_ROOT_PATHS
${CMAKE_INSTALL_PREFIX}
)
if(APPLE AND IOS)
set(_XML2_ROOT_PATHS "/usr/lib")
endif()
find_path(XML2_INCLUDE_DIRS
NAMES libxml/xmlreader.h
HINTS _XML2_ROOT_PATHS
HINTS "${_XML2_ROOT_PATHS}"
PATH_SUFFIXES include/libxml2
)
......@@ -42,8 +42,7 @@ endif()
find_library(XML2_LIBRARIES
NAMES xml2
HINTS ${_XML2_ROOT_PATHS}
PATH_SUFFIXES bin lib
HINTS "${_XML2_ROOT_PATHS}"
)
include(FindPackageHandleStandardArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment