[libunwind] Create install-unwind-stripped target manually

This supports using a newer libunwind with an older installation of LLVM
(whose cmake modules wouldn't have add_llvm_install_targets).

llvm-svn: 320163
This commit is contained in:
Shoaib Meenai 2017-12-08 17:15:05 +00:00
parent 5791ce77ba
commit 7bd1c95a95
1 changed files with 11 additions and 3 deletions

View File

@ -139,7 +139,15 @@ if (LIBUNWIND_INSTALL_LIBRARY)
endif()
if (NOT CMAKE_CONFIGURATION_TYPES AND LIBUNWIND_INSTALL_LIBRARY)
add_llvm_install_targets(install-unwind
DEPENDS unwind
COMPONENT unwind)
add_custom_target(install-unwind
DEPENDS unwind
COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=unwind
-P "${LIBUNWIND_BINARY_DIR}/cmake_install.cmake")
add_custom_target(install-unwind-stripped
DEPENDS unwind
COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=unwind
-DCMAKE_INSTALL_DO_STRIP=1
-P "${LIBUNWIND_BINARY_DIR}/cmake_install.cmake")
endif()