summaryrefslogtreecommitdiff
path: root/utils/hmaptool
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-10-04 05:43:20 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-10-04 05:43:20 +0000
commit042225996c0f8e498308ec170acb09afcfdf858a (patch)
treead7589967d72fcd91acc472b1b12713df6179ada /utils/hmaptool
parent38c1f7c254e6e699d3e45e446fa4515418a00c9a (diff)
downloadclang-042225996c0f8e498308ec170acb09afcfdf858a.tar.gz
[clang] [cmake] Add distribution install targets for remaining components
Add install targets as necessary to install bash-autocomplete, scan-build and scan-view via LLVM_DISTRIBUTION_TARGETS. Differential Revision: https://reviews.llvm.org/D68413 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/hmaptool')
-rw-r--r--utils/hmaptool/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/hmaptool/CMakeLists.txt b/utils/hmaptool/CMakeLists.txt
index 5573009d34..62f2de0cb1 100644
--- a/utils/hmaptool/CMakeLists.txt
+++ b/utils/hmaptool/CMakeLists.txt
@@ -9,8 +9,15 @@ add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HM
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${CLANG_HMAPTOOL})
list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL})
-install(PROGRAMS ${CLANG_HMAPTOOL} DESTINATION bin)
+install(PROGRAMS ${CLANG_HMAPTOOL}
+ DESTINATION bin
+ COMPONENT hmaptool)
add_custom_target(hmaptool ALL DEPENDS ${Depends})
set_target_properties(hmaptool PROPERTIES FOLDER "Utils")
+if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-hmaptool"
+ DEPENDS hmaptool
+ COMPONENT hmaptool)
+endif()