forked from OSchip/llvm-project
[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:
parent
5791ce77ba
commit
7bd1c95a95
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue