From 1d0f79558ca47f50119fb38c62ff5afd3160d260 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 19 Jul 2022 10:40:26 -0400 Subject: [PATCH] [libc++] Make sure cxx_experimental links against libc++ headers This should fix builds where we build neither the static nor the shared library. --- libcxx/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt index 28436fb..efa4777 100644 --- a/libcxx/src/CMakeLists.txt +++ b/libcxx/src/CMakeLists.txt @@ -320,6 +320,7 @@ if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY) experimental/memory_resource.cpp ) add_library(cxx_experimental STATIC ${LIBCXX_EXPERIMENTAL_SOURCES}) + target_link_libraries(cxx_experimental PUBLIC cxx-headers) if (LIBCXX_ENABLE_SHARED) target_link_libraries(cxx_experimental PRIVATE cxx_shared) else() -- 2.7.4