[PATCH] D41755: [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:15 PST 2018
phosek updated this revision to Diff 129138.
Repository:
rCXX libc++
https://reviews.llvm.org/D41755
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -356,10 +356,11 @@
if (LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY)
set(experimental_lib cxx_experimental)
endif()
- install(TARGETS ${LIBCXX_TARGETS} ${experimental_lib}
+ install(TARGETS ${LIBCXX_TARGETS} ${experimental_lib} EXPORT LLVMRuntimes
LIBRARY DESTINATION ${LIBCXX_INSTALL_PREFIX}lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT cxx
ARCHIVE DESTINATION ${LIBCXX_INSTALL_PREFIX}lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT cxx
)
+ set_property(GLOBAL APPEND PROPERTY LLVM_RUNTIMES ${LIBCXX_TARGETS} ${experimental_lib})
# NOTE: This install command must go after the cxx install command otherwise
# it will not be executed after the library symlinks are installed.
if (LIBCXX_ENABLE_SHARED AND LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41755.129138.patch
Type: text/x-patch
Size: 890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180109/129719c7/attachment.bin>
More information about the cfe-commits
mailing list