[PATCH] D41754: [CMake] Collect target names in the global LLVM_RUNTIMES property
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 9 11:57:55 PST 2018
phosek updated this revision to Diff 129140.
Repository:
rCXXA libc++abi
https://reviews.llvm.org/D41754
Files:
src/CMakeLists.txt
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -180,10 +180,11 @@
add_custom_target(cxxabi DEPENDS ${LIBCXXABI_TARGETS})
if (LIBCXXABI_INSTALL_LIBRARY)
- install(TARGETS ${LIBCXXABI_TARGETS}
+ install(TARGETS ${LIBCXXABI_TARGETS} EXPORT LLVMRuntimes
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.129140.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180109/db2f785e/attachment.bin>
More information about the cfe-commits
mailing list