From 2c1803ee7c95f964379d9aeddb38de626f0ca83b Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Thu, 30 Nov 2017 23:24:08 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@319498 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d703861..85ad6ce 100644 --- a/src/CMakeLists.txt +++ b/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() -- cgit v1.2.3