diff --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt --- a/libc/lib/CMakeLists.txt +++ b/libc/lib/CMakeLists.txt @@ -16,9 +16,8 @@ COMPONENT llvmlibc ) -add_custom_target( - install-llvmlibc - DEPENDS llvmlibc - COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=llvmlibc - -P "${LIBC_BINARY_DIR}/cmake_install.cmake" +add_llvm_install_targets( + install-llvmlibc + DEPENDS llvmlibc + COMPONENT llvmlibc )