[libc++] Install PSTL when installing libc++ with parallel algorithms enabled
This commit is contained in:
parent
0369dc98f9
commit
512c903898
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue