summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/tool
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-10-04 05:40:29 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-10-04 05:40:29 +0000
commitcb46b69e3eeae23b99f646e6dd23b1f05f6d8671 (patch)
tree3b227a6883236f1ec236f856ee48c50dd96c7826 /clang-tools-extra/clang-query/tool
parent7f379a3366ca8e80f891f7b9a51d79b81834741e (diff)
downloadbcm5719-llvm-cb46b69e3eeae23b99f646e6dd23b1f05f6d8671.tar.gz
bcm5719-llvm-cb46b69e3eeae23b99f646e6dd23b1f05f6d8671.zip
[clang-tools-extra] [cmake] Use add_clang_tool() to install tools
Replace add_clang_executable() calls with add_clang_tool() that takes care of creating correct, distribution-friendly install target. While at it, remove redundant install calls. This change also causes clang-move and pp-trace to be installed. Differential Revision: https://reviews.llvm.org/D68423 llvm-svn: 373694
Diffstat (limited to 'clang-tools-extra/clang-query/tool')
-rw-r--r--clang-tools-extra/clang-query/tool/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-query/tool/CMakeLists.txt b/clang-tools-extra/clang-query/tool/CMakeLists.txt
index d6ac0ae7804..7071c94cffc 100644
--- a/clang-tools-extra/clang-query/tool/CMakeLists.txt
+++ b/clang-tools-extra/clang-query/tool/CMakeLists.txt
@@ -1,6 +1,6 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
-add_clang_executable(clang-query
+add_clang_tool(clang-query
ClangQuery.cpp
)
target_link_libraries(clang-query
@@ -14,5 +14,3 @@ target_link_libraries(clang-query
clangSerialization
clangTooling
)
-
-install(TARGETS clang-query RUNTIME DESTINATION bin)
OpenPOWER on IntegriCloud