[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
This commit is contained in:
Petr Hosek 2017-12-13 01:14:27 +00:00
parent 4d8a75a1ca
commit eb8301413a
1 changed files with 4 additions and 2 deletions

View File

@ -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()