diff --git a/CMakeLists.txt b/CMakeLists.txt index 723ac121..dd36b616 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,9 +123,13 @@ macro(setup_abi_lib abipathvar abidefines abilibs abifiles abidirs) message(FATAL_ERROR "Failed to find ${fpath}") endif() endforeach() + add_custom_target(abilib_headers DEPENDS ${LIBCXX_CXX_ABI_DEPS}) + set(LIBCXX_CXX_ABI_DEPS abilib_headers) include_directories("${CMAKE_BINARY_DIR}/include") - install(FILES ${LIBCXX_CXX_ABI_DEPS} + install(DIRECTORY "${CMAKE_BINARY_DIR}/include/" DESTINATION include/c++/v1 + FILES_MATCHING + PATTERN "*" ) endmacro()