[PATCH] D41753: [libunwind][CMake] Collect target names in the global LLVM_RUNTIMES property

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 11:58:15 PST 2018


phosek updated this revision to Diff 129141.

https://reviews.llvm.org/D41753

Files:
  src/CMakeLists.txt


Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -133,9 +133,10 @@
 add_custom_target(unwind DEPENDS ${LIBUNWIND_TARGETS})
 
 if (LIBUNWIND_INSTALL_LIBRARY)
-  install(TARGETS ${LIBUNWIND_TARGETS}
+  install(TARGETS ${LIBUNWIND_TARGETS} EXPORT LLVMRuntimes
     LIBRARY DESTINATION ${LIBUNWIND_INSTALL_PREFIX}lib${LIBUNWIND_LIBDIR_SUFFIX} COMPONENT unwind
     ARCHIVE DESTINATION ${LIBUNWIND_INSTALL_PREFIX}lib${LIBUNWIND_LIBDIR_SUFFIX} COMPONENT unwind)
+  set_property(GLOBAL APPEND PROPERTY LLVM_RUNTIMES ${LIBUNWIND_TARGETS})
 endif()
 
 if (NOT CMAKE_CONFIGURATION_TYPES AND LIBUNWIND_INSTALL_LIBRARY)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41753.129141.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180109/342a8335/attachment.bin>


More information about the llvm-commits mailing list