[PATCH] D41144: [lldb] Set component when invoking add_llvm_install_targets

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 17:12:10 PST 2017


phosek created this revision.
phosek added a reviewer: smeenai.
Herald added a subscriber: mgorny.

This is needed to ensure that the distribution and install-distribution targets work properly.


Repository:
  rL LLVM

https://reviews.llvm.org/D41144

Files:
  cmake/modules/AddLLDB.cmake


Index: cmake/modules/AddLLDB.cmake
===================================================================
--- cmake/modules/AddLLDB.cmake
+++ cmake/modules/AddLLDB.cmake
@@ -67,7 +67,8 @@
       endif()
       if (NOT CMAKE_CONFIGURATION_TYPES)
         add_llvm_install_targets(install-${name}
-                                 DEPENDS ${name})
+                                 DEPENDS ${name}
+                                 COMPONENT ${name})
       endif()
     endif()
   endif()
@@ -134,7 +135,8 @@
           RUNTIME DESTINATION bin)
     if (NOT CMAKE_CONFIGURATION_TYPES)
       add_llvm_install_targets(install-${name}
-                               DEPENDS ${name})
+                               DEPENDS ${name}
+                               COMPONENT ${name})
     endif()
   endif()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41144.126655.patch
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171213/6251cec4/attachment.bin>


More information about the llvm-commits mailing list