[libcxx-commits] [libcxx] 512c903 - [libc++] Install PSTL when installing libc++ with parallel algorithms enabled

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 8 12:01:30 PDT 2020


Author: Louis Dionne
Date: 2020-07-08T15:01:15-04:00
New Revision: 512c90389839a595ff592bf2f1345e0f1bc18530

URL: https://github.com/llvm/llvm-project/commit/512c90389839a595ff592bf2f1345e0f1bc18530
DIFF: https://github.com/llvm/llvm-project/commit/512c90389839a595ff592bf2f1345e0f1bc18530.diff

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

Added: 
    

Modified: 
    libcxx/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index 3e48d96f44cf..9c2db48b66b7 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -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


        


More information about the libcxx-commits mailing list