[clang-tidy] Clean up installation rules
authorShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 01:48:20 +0000 (01:48 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 01:48:20 +0000 (01:48 +0000)
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

index 61b70b5..092d4ec 100644 (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)