From eb8301413a65bf58b9fc0ff7eba98c1746e50b58 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 13 Dec 2017 01:14:27 +0000 Subject: [PATCH] [lldb] Set component when invoking add_llvm_install_targets This is needed to ensure that the distribution and install-distribution targets work properly. Differential Revision: https://reviews.llvm.org/D41144 llvm-svn: 320537 --- lldb/cmake/modules/AddLLDB.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index ef0371130fb8..2fd8b384d9e3 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -67,7 +67,8 @@ function(add_lldb_library name) 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 @@ function(add_lldb_executable name) RUNTIME DESTINATION bin) if (NOT CMAKE_CONFIGURATION_TYPES) add_llvm_install_targets(install-${name} - DEPENDS ${name}) + DEPENDS ${name} + COMPONENT ${name}) endif() endif()