diff options
Diffstat (limited to 'modules/FindLibXml2.cmake')
-rw-r--r-- | modules/FindLibXml2.cmake | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/FindLibXml2.cmake b/modules/FindLibXml2.cmake index a5d8ab17..deb09c65 100644 --- a/modules/FindLibXml2.cmake +++ b/modules/FindLibXml2.cmake @@ -7,18 +7,13 @@ # LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2 # -IF (WIN32) - FIND_PACKAGE(GNUWIN32) - SET(_LibXml2IncDir ${GNUWIN32_DIR}/include) - SET(_LibXml2LinkDir ${GNUWIN32_DIR}/lib) -ELSE (WIN32) +IF (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls INCLUDE(UsePkgConfig) PKGCONFIG(libxml-2.0 _LibXml2IncDir _LibXml2LinkDir _LibXml2LinkFlags _LibXml2Cflags) -ENDIF (WIN32) - -set(LIBXML2_DEFINITIONS ${_LibXml2Cflags}) + set(LIBXML2_DEFINITIONS ${_LibXml2Cflags}) +ENDIF (NOT WIN32) FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xpath.h PATHS |