[PATCH] D51552: Libraries added with add_llvm_loadable_module macro to have their component name

Valeriy Dmitriev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 31 11:53:39 PDT 2018


vdmitrie created this revision.
Herald added subscribers: llvm-commits, mgorny.

Make targets added with add_llvm_loadable_module macro to be in their named components rather than end up in Unspecified one.


Repository:
  rL LLVM

https://reviews.llvm.org/D51552

Files:
  cmake/modules/AddLLVM.cmake


Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -695,8 +695,8 @@
 
         install(TARGETS ${name}
                 ${export_to_llvmexports}
-                LIBRARY DESTINATION ${dlldir}
-                ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
+                LIBRARY DESTINATION ${dlldir} COMPONENT ${name}
+                ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT ${name})
       endif()
       set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
     endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51552.163571.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180831/756d0da1/attachment.bin>


More information about the llvm-commits mailing list