[clang-tools-extra] r317155 - [clang-tidy] Clean up installation rules
Shoaib Meenai via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 18:48:20 PDT 2017
Author: smeenai
Date: Wed Nov 1 18:48:20 2017
New Revision: 317155
URL: http://llvm.org/viewvc/llvm-project?rev=317155&view=rev
Log:
[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`.
Modified:
clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt
Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt?rev=317155&r1=317154&r2=317155&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Wed Nov 1 18:48:20 2017
@@ -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)
More information about the cfe-commits
mailing list