Commit 8c0d2055 authored by Jan Möbius's avatar Jan Möbius
Browse files

Update libxml2 finder for windows

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7836 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 03018aef
# - Try to find XML2
# Once done this will define
#
# XML2_FOUND - system has XML2
# XML2_INCLUDE_DIR - the XML2 include directory
# XML2_LIBRARY - Link these to use XML2
#
IF (XML2_INCLUDE_DIRS)
# Already in cache, be silent
SET(XML2_FIND_QUIETLY TRUE)
ENDIF (XML2_INCLUDE_DIRS)
FIND_PATH( XML2_INCLUDE_DIR libxml/xmlreader.h
PATHS "/usr/include/libxml2" )
FIND_LIBRARY( XML2_LIBRARY
NAMES xml2
PATHS /usr/lib /usr/local/lib )
IF (XML2_INCLUDE_DIR AND XML2_LIBRARY)
SET(XML2_FOUND TRUE)
ELSE (XML2_INCLUDE_DIR AND XML2_LIBRARY)
SET( XML2_FOUND FALSE )
ENDIF (XML2_INCLUDE_DIR AND XML2_LIBRARY)
# - Try to find XML2
# Once done this will define
#
# XML2_FOUND - system has XML2
# XML2_INCLUDE_DIR - the XML2 include directory
# XML2_LIBRARY - Link these to use XML2
#
IF (XML2_INCLUDE_DIRS)
# Already in cache, be silent
SET(XML2_FIND_QUIETLY TRUE)
ENDIF (XML2_INCLUDE_DIRS)
# Find the headers
FIND_PATH( XML2_INCLUDE_DIR libxml/xmlversion.h
PATHS /usr/include/libxml2 "C:/libs/libxml2/include/libxml2" )
if( WIN32 )
FIND_LIBRARY( XML2_LIBRARY
NAMES libxml2.lib
PATHS "C:/libs/libxml2/lib" )
else (WIN32)
FIND_LIBRARY( XML2_LIBRARY
NAMES xml2
PATHS /usr/lib /usr/local/lib )
endif( WIN32)
IF (XML2_INCLUDE_DIR AND XML2_LIBRARY)
SET(XML2_FOUND TRUE)
ELSE (XML2_INCLUDE_DIR AND XML2_LIBRARY)
SET( XML2_FOUND FALSE )
ENDIF (XML2_INCLUDE_DIR AND XML2_LIBRARY)
Supports Markdown
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