[libc++] Make sure cxx_experimental links against libc++ headers

This should fix builds where we build neither the static nor the shared
library.
This commit is contained in:
Louis Dionne 2022-07-19 10:40:26 -04:00
parent 3d2256cc75
commit 1d0f79558c

View File

@ -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()