[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
This commit is contained in:
Shoaib Meenai 2017-11-02 01:48:20 +00:00
parent 826a02328f
commit 09d4efee52
1 changed files with 6 additions and 5 deletions

View File

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