| From 39ad160468e2b6acaa0b2b1ab353079eca4a3b03 Mon Sep 17 00:00:00 2001 |
| From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st> |
| Date: Thu, 4 Mar 2021 22:48:41 +0200 |
| Subject: [PATCH] [libunwind] Install the DLL when doing "ninja install" |
| |
| This matches how install(... RUNTIME) is used in e.g. libcxx. |
| |
| Differential Revision: https://reviews.llvm.org/D98020 |
| --- |
| src/CMakeLists.txt | 3 ++- |
| 1 file changed, 2 insertions(+), 1 deletion(-) |
| |
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
| index f59dfdde9f03..f341b21e6016 100644 |
| --- a/src/CMakeLists.txt |
| +++ b/src/CMakeLists.txt |
| @@ -183,7 +183,8 @@ add_custom_target(unwind DEPENDS ${LIBUNWIND_BUILD_TARGETS}) |
| if (LIBUNWIND_INSTALL_LIBRARY) |
| install(TARGETS ${LIBUNWIND_INSTALL_TARGETS} |
| LIBRARY DESTINATION ${LIBUNWIND_INSTALL_PREFIX}${LIBUNWIND_INSTALL_LIBRARY_DIR} COMPONENT unwind |
| - ARCHIVE DESTINATION ${LIBUNWIND_INSTALL_PREFIX}${LIBUNWIND_INSTALL_LIBRARY_DIR} COMPONENT unwind) |
| + ARCHIVE DESTINATION ${LIBUNWIND_INSTALL_PREFIX}${LIBUNWIND_INSTALL_LIBRARY_DIR} COMPONENT unwind |
| + RUNTIME DESTINATION ${LIBUNWIND_INSTALL_PREFIX}bin COMPONENT unwind) |
| endif() |
| |
| if (NOT CMAKE_CONFIGURATION_TYPES AND LIBUNWIND_INSTALL_LIBRARY) |
| -- |
| 2.31.1.windows.1 |
| |