From e21f3c77db19113a7354673e3e0825e5729376dc Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Fri, 11 Oct 2024 13:42:44 +0100 Subject: [PATCH] [CFXMLInterface] Remove spurious include path. The include path for libxml2 should be being set automatically by CMake because of the `target_link_libraries()` call; there is no need to add it explicitly. Additionally, it's a really bad idea if you specify an absolute path... rdar://137567628 --- Sources/_CFXMLInterface/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/_CFXMLInterface/CMakeLists.txt b/Sources/_CFXMLInterface/CMakeLists.txt index d6e63a3f59..d5ffe6457e 100644 --- a/Sources/_CFXMLInterface/CMakeLists.txt +++ b/Sources/_CFXMLInterface/CMakeLists.txt @@ -19,8 +19,7 @@ target_include_directories(_CFXMLInterface include ../CoreFoundation/include PRIVATE - ../CoreFoundation/internalInclude - /usr/include/libxml2/) + ../CoreFoundation/internalInclude) target_compile_options(_CFXMLInterface INTERFACE "$<$:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/../CoreFoundation/include/module.modulemap>"