diff options
| -rw-r--r-- | lldb/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | lldb/source/Host/macosx/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 4cc4566890d..cf27eadcdde 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -260,7 +260,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin") find_library(SECURITY_LIBRARY Security) find_library(DEBUG_SYMBOLS_LIBRARY DebugSymbols PATHS "/System/Library/PrivateFrameworks") - set(LIBXML2_INCLUDE_DIR "/usr/include/libxml2") + if (NOT LIBXML2_FOUND) + find_package(LibXml2) + endif () list(APPEND system_libs xml2 ncurses panel) list(APPEND system_libs ${CARBON_LIBRARY} ${FOUNDATION_LIBRARY} ${CORE_FOUNDATION_LIBRARY} ${CORE_SERVICES_LIBRARY} ${SECURITY_LIBRARY} diff --git a/lldb/source/Host/macosx/CMakeLists.txt b/lldb/source/Host/macosx/CMakeLists.txt index 2b720897270..672c40a5212 100644 --- a/lldb/source/Host/macosx/CMakeLists.txt +++ b/lldb/source/Host/macosx/CMakeLists.txt @@ -1,6 +1,6 @@ set(LLVM_NO_RTTI 1) -include_directories(${LIBXML2_INCLUDE_DIR}) +include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR}) add_lldb_library(lldbHostMacOSX Host.mm |

