[Lldb-commits] [lldb] 24593f1 - [lldb] build: cleanup extraneous include paths (#117615)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 27 08:39:19 PST 2024
Author: Saleem Abdulrasool
Date: 2024-11-27T08:39:15-08:00
New Revision: 24593f1814dc02c7404526674838ccfb1c61d780
URL: https://github.com/llvm/llvm-project/commit/24593f1814dc02c7404526674838ccfb1c61d780
DIFF: https://github.com/llvm/llvm-project/commit/24593f1814dc02c7404526674838ccfb1c61d780.diff
LOG: [lldb] build: cleanup extraneous include paths (#117615)
Clean up some unnecessary include paths. The use of `LibXml2::LibXml2`
with `target_link_libraries` on `libLLDBHost` ensures that the header
search path is properly propagated.
Added:
Modified:
lldb/cmake/modules/LLDBConfig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 93ccd9c479c2b8..ee4c2630d32e25 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -239,10 +239,6 @@ if (LLDB_ENABLE_LZMA)
include_directories(${LIBLZMA_INCLUDE_DIRS})
endif()
-if (LLDB_ENABLE_LIBXML2)
- include_directories(${LIBXML2_INCLUDE_DIR})
-endif()
-
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include
@@ -283,7 +279,6 @@ if (APPLE)
find_library(FOUNDATION_LIBRARY Foundation)
find_library(CORE_FOUNDATION_LIBRARY CoreFoundation)
find_library(SECURITY_LIBRARY Security)
- include_directories(${LIBXML2_INCLUDE_DIR})
endif()
if( WIN32 AND NOT CYGWIN )
More information about the lldb-commits
mailing list