[libunwind] Switch to add_llvm_install_targets

This gains us the install-unwind-stripped target, to perform stripping
during installation.

Differential Revision: https://reviews.llvm.org/D40685

llvm-svn: 319498
This commit is contained in:
Shoaib Meenai 2017-11-30 23:24:08 +00:00
parent 318fbeb972
commit e0c51f688f
1 changed files with 3 additions and 5 deletions

View File

@ -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()