summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-11-30 23:24:08 +0000
committerShoaib Meenai <smeenai@fb.com>2017-11-30 23:24:08 +0000
commit2c1803ee7c95f964379d9aeddb38de626f0ca83b (patch)
tree6cef2ef295b5cf536e90e570f933bc2dc2dee2dc
parentde940230960c9b465efab2feb06639240bbfa6ef (diff)
[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
-rw-r--r--src/CMakeLists.txt8
1 files 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()