[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
Thu Jan 4 18:17:21 PST 2018


phosek created this revision.
phosek added a reviewer: beanz.
Herald added a subscriber: mgorny.

This allows exporting the runtimes targets using the CMake export.


Repository:
  rL LLVM

https://reviews.llvm.org/D41753

Files:
  src/CMakeLists.txt


Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -136,6 +136,7 @@
   install(TARGETS ${LIBUNWIND_TARGETS}
     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.128702.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180105/d934cbea/attachment.bin>


More information about the llvm-commits mailing list