[PATCH] D41752: [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:56:55 PST 2018
phosek updated this revision to Diff 129137.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41752
Files:
cmake/Modules/AddCompilerRT.cmake
Index: cmake/Modules/AddCompilerRT.cmake
===================================================================
--- cmake/Modules/AddCompilerRT.cmake
+++ cmake/Modules/AddCompilerRT.cmake
@@ -260,7 +260,7 @@
)
endif()
endif()
- install(TARGETS ${libname}
+ install(TARGETS ${libname} EXPORT LLVMRuntimes
ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}
${COMPONENT_OPTION}
LIBRARY DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}
@@ -297,6 +297,7 @@
if(type STREQUAL "SHARED")
rt_externalize_debuginfo(${libname})
endif()
+ set_property(GLOBAL APPEND PROPERTY LLVM_RUNTIMES ${libname})
endforeach()
if(LIB_PARENT_TARGET)
add_dependencies(${LIB_PARENT_TARGET} ${libnames})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41752.129137.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180109/ea57cd19/attachment.bin>
More information about the llvm-commits
mailing list