diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index d70386183620..85ad6cec56b0 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -139,9 +139,7 @@ if (LIBUNWIND_INSTALL_LIBRARY) endif() if (NOT CMAKE_CONFIGURATION_TYPES AND LIBUNWIND_INSTALL_LIBRARY) - add_custom_target(install-unwind - DEPENDS unwind - COMMAND "${CMAKE_COMMAND}" - -DCMAKE_INSTALL_COMPONENT=unwind - -P "${LIBUNWIND_BINARY_DIR}/cmake_install.cmake") + add_llvm_install_targets(install-unwind + DEPENDS unwind + COMPONENT unwind) endif()