[clang-rename] Use add_clang_tool

`add_clang_tool` includes a call to `add_clang_executable`, but it also
sets up the install rule, and adds an `install-*` target. The latter is
required for using `LLVM_DISTRIBUTION_COMPONENTS`.

Differential Revision: https://reviews.llvm.org/D39522

llvm-svn: 317150
This commit is contained in:
Shoaib Meenai 2017-11-02 01:11:40 +00:00
parent c40419d94b
commit 30e182d454
1 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
Support Support
) )
add_clang_executable(clang-rename ClangRename.cpp) add_clang_tool(clang-rename ClangRename.cpp)
target_link_libraries(clang-rename target_link_libraries(clang-rename
clangBasic clangBasic
@ -14,8 +14,6 @@ target_link_libraries(clang-rename
clangToolingRefactor clangToolingRefactor
) )
install(TARGETS clang-rename RUNTIME DESTINATION bin)
install(PROGRAMS clang-rename.py install(PROGRAMS clang-rename.py
DESTINATION share/clang DESTINATION share/clang
COMPONENT clang-rename) COMPONENT clang-rename)