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})