[PATCH] D41754: [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:18:54 PST 2018


phosek created this revision.
phosek added a reviewer: beanz.
Herald added subscribers: cfe-commits, mgorny.

This allows exporting the runtimes targets using the CMake export.


Repository:
  rCXXA libc++abi

https://reviews.llvm.org/D41754

Files:
  src/CMakeLists.txt


Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -184,6 +184,7 @@
     LIBRARY DESTINATION ${LIBCXXABI_INSTALL_PREFIX}lib${LIBCXXABI_LIBDIR_SUFFIX} COMPONENT cxxabi
     ARCHIVE DESTINATION ${LIBCXXABI_INSTALL_PREFIX}lib${LIBCXXABI_LIBDIR_SUFFIX} COMPONENT cxxabi
     )
+  set_property(GLOBAL APPEND PROPERTY LLVM_RUNTIMES ${LIBCXXABI_TARGETS})
 endif()
 
 if (NOT CMAKE_CONFIGURATION_TYPES AND LIBCXXABI_INSTALL_LIBRARY)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41754.128703.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180105/f7e8fe12/attachment.bin>


More information about the llvm-commits mailing list