$NetBSD: patch-src_CMakeLists.txt,v 1.1 2022/11/14 18:44:06 adam Exp $

Fix build.

--- src/CMakeLists.txt.orig	2025-10-21 08:14:55.000000000 +0000
+++ src/CMakeLists.txt
@@ -57,6 +57,7 @@ if (MSVC_IDE OR XCODE)
 endif()
 
 # Some files depend on libc++ internals.
+include_directories("${LIBCXXABI_LIBCXX_PATH}/include")
 include_directories("${LIBCXXABI_LIBCXX_PATH}/src")
 
 if (LIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL)
@@ -174,7 +175,7 @@ if (LIBCXXABI_USE_LLVM_UNWINDER)
 endif()
 target_link_libraries(cxxabi_shared_objects
   PUBLIC cxxabi-headers
-  PRIVATE cxx-headers runtimes-libc-headers ${LIBCXXABI_LIBRARIES})
+  PRIVATE runtimes-libc-headers ${LIBCXXABI_LIBRARIES})
 if (NOT CXX_SUPPORTS_NOSTDLIBXX_FLAG)
   target_link_libraries(cxxabi_shared_objects PRIVATE ${LIBCXXABI_BUILTINS_LIBRARY})
 endif()
@@ -277,7 +278,7 @@ if (LIBCXXABI_USE_LLVM_UNWINDER AND LIBC
 endif()
 target_link_libraries(cxxabi_static_objects
   PUBLIC cxxabi-headers
-  PRIVATE cxx-headers runtimes-libc-headers ${LIBCXXABI_STATIC_LIBRARIES} ${LIBCXXABI_LIBRARIES})
+  PRIVATE runtimes-libc-headers ${LIBCXXABI_STATIC_LIBRARIES} ${LIBCXXABI_LIBRARIES})
 set_target_properties(cxxabi_static_objects
   PROPERTIES
     CXX_EXTENSIONS OFF
