From 09d4efee5200cc25860e202cf693e988174b111b Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Thu, 2 Nov 2017 01:48:20 +0000 Subject: [PATCH] [clang-tidy] Clean up installation rules An installation rule for the executable with the correct component is already created by `add_clang_tool`, so the rule in this file is redundant. Correct the installation component for the Python scripts so that they also get installed by `install-clang-tidy`. llvm-svn: 317155 --- clang-tools-extra/clang-tidy/tool/CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt index 61b70b5..092d4ec 100644 --- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt @@ -34,8 +34,9 @@ target_link_libraries(clang-tidy clangToolingCore ) -install(TARGETS clang-tidy - RUNTIME DESTINATION bin) - -install(PROGRAMS clang-tidy-diff.py DESTINATION share/clang) -install(PROGRAMS run-clang-tidy.py DESTINATION share/clang) +install(PROGRAMS clang-tidy-diff.py + DESTINATION share/clang + COMPONENT clang-tidy) +install(PROGRAMS run-clang-tidy.py + DESTINATION share/clang + COMPONENT clang-tidy) -- 2.7.4