Add include directory for libxml on macOS
authorStephane Sezer <sas@cd80.net>
Wed, 22 Aug 2018 22:25:45 +0000 (22:25 +0000)
committerStephane Sezer <sas@cd80.net>
Wed, 22 Aug 2018 22:25:45 +0000 (22:25 +0000)
Summary:
Builds fail because libxml/xmlreader.h isn't found. Adding the include
directory to the include list fixes the issue. This is what we already do on
non-macOS platforms in the same file.

Reviewers: clayborg, xiaobai, lanza

Reviewed By: clayborg, lanza

Subscribers: mgorny

Differential Revision: https://reviews.llvm.org/D50918

llvm-svn: 340460

lldb/cmake/modules/LLDBConfig.cmake

index dae6e365da38f1ff15d8e3c7a471bfc916c3460a..54da0706c9a9bdf0efa0e3b62a2c72b02066c3f0 100644 (file)
@@ -336,14 +336,13 @@ if (APPLE)
        ${CORE_SERVICES_LIBRARY}
        ${SECURITY_LIBRARY}
        ${DEBUG_SYMBOLS_LIBRARY})
-
+  include_directories(${LIBXML2_INCLUDE_DIR})
 else()
   if (LIBXML2_FOUND)
     add_definitions( -DLIBXML2_DEFINED )
     list(APPEND system_libs ${LIBXML2_LIBRARIES})
     include_directories(${LIBXML2_INCLUDE_DIR})
   endif()
-
 endif()
 
 if( WIN32 AND NOT CYGWIN )