blob: 344e474128382d4d88f1fa2502f0a7d6f4bb8cc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
FILE(TO_CMAKE_PATH "$ENV{LIBXML2_DIR}" TRY1_DIR)
FILE(TO_CMAKE_PATH "${LIBXML2_DIR}" TRY2_DIR)
FILE(GLOB LIBXML2_DIR ${TRY1_DIR} ${TRY2_DIR})
FIND_PATH(LIBXML2_INCLUDE_DIR libxml/parser.h
PATHS ${LIBXML2_DIR}/include /usr/local/include/libxml2 /usr/include/libxml2
ENV INCLUDE DOC "Directory containing libxml/parser.h include file")
IF (LIBXML2_INCLUDE_DIR)
SET(LIBXML2_FOUND TRUE)
ENDIF (LIBXML2_INCLUDE_DIR)
|