llvm-project/lldb/source/Host
Saleem Abdulrasool eb4592b18d build: fix libxml2 detection via CMake
libxml2's include path was unconditionally set to /usr/include/libxml2.  This
would work previously, however, Mavericks removed the /usr/include directory.
Since LLDB already requires clang, which via LLVM's build infrastructure
searches for libxml2, we have a proper include path for libxml2.  If
LIBXML2_FOUND is set, do not touch the libxml2 search path.  Instead, allow the
clang's definition to propagate throughout the LLVM build.  Otherwise, switch to
find_package(LibXml2) as clang does.  This will ensure that the correct path is
used for libxml2 irrespective of the platform.

Furthermore, treat libxml2 as a system provided library.  It is not part of the
LLVM source base so it is of little value to enable all warnings on its headers.
This unifies the treatment of libxml2 across clang and LLDB.

llvm-svn: 203955
2014-03-14 18:23:07 +00:00
..
common Replace some Windows specific string functions with std::string. 2014-03-12 10:53:50 +00:00
freebsd Fix types to eliminate compiler warnings in FreeBSD host class 2014-02-28 13:46:51 +00:00
linux Enable Linux distribution in vendor portion of host triple. 2014-01-17 20:18:59 +00:00
macosx build: fix libxml2 detection via CMake 2014-03-14 18:23:07 +00:00
windows Change type of a few members of a struct from unsigned to signed. 2014-03-13 10:47:49 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
Makefile MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00