Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
100cf22a
Commit
100cf22a
authored
Mar 18, 2016
by
Ghislain MARY
Browse files
Fix search of libxml2 on Mac OS X.
parent
944774e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
cmake/FindXML2.cmake
cmake/FindXML2.cmake
+7
-4
No files found.
cmake/FindXML2.cmake
View file @
100cf22a
...
...
@@ -26,13 +26,16 @@
# XML2_INCLUDE_DIRS - the libxml2 include directory
# XML2_LIBRARIES - The libraries needed to use libxml2
if
(
APPLE AND IOS
)
set
(
_XML2_ROOT_PATHS
"/usr/lib"
)
if
(
APPLE AND NOT IOS
)
set
(
XML2_HINTS
"/usr"
)
endif
()
if
(
XML2_HINTS
)
set
(
XML2_LIBRARIES_HINTS
"
${
XML2_HINTS
}
/lib"
)
endif
()
find_path
(
XML2_INCLUDE_DIRS
NAMES libxml/xmlreader.h
HINTS
"
${
_
XML2_
ROOT_PATH
S
}
"
HINTS
"
${
XML2_
HINT
S
}
"
PATH_SUFFIXES include/libxml2
)
...
...
@@ -42,7 +45,7 @@ endif()
find_library
(
XML2_LIBRARIES
NAMES xml2
HINTS
"
${
_
XML2_
ROOT_PATH
S
}
"
HINTS
"
${
XML2_
LIBRARIES_HINT
S
}
"
)
include
(
FindPackageHandleStandardArgs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment