[libc++] Install PSTL when installing libc++ with parallel algorithms enabled

This commit is contained in:
Louis Dionne 2020-07-08 15:00:31 -04:00
parent 0369dc98f9
commit 512c903898
1 changed files with 5 additions and 0 deletions

View File

@ -381,10 +381,14 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND (LIBCXX_INSTALL_LIBRARY OR
if(LIBCXX_INSTALL_HEADERS)
set(header_install_target install-cxx-headers)
endif()
if (LIBCXX_ENABLE_PARALLEL_ALGORITHMS)
set(pstl_install_target install-pstl)
endif()
add_custom_target(install-cxx
DEPENDS ${lib_install_target}
${experimental_lib_install_target}
${header_install_target}
${pstl_install_target}
COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=cxx
-P "${LIBCXX_BINARY_DIR}/cmake_install.cmake")
@ -392,6 +396,7 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND (LIBCXX_INSTALL_LIBRARY OR
DEPENDS ${lib_install_target}
${experimental_lib_install_target}
${header_install_target}
${pstl_install_target}
COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=cxx
-DCMAKE_INSTALL_DO_STRIP=1