[clang-reorder-fields] Switch to add_clang_tool

`add_clang_tool` invokes `add_clang_executable` internally, but it also
takes care of setting up the install rule. It also adds an `install-*`
build target, which is required for `LLVM_DISTRIBUTION_COMPONENTS`.

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

llvm-svn: 317149
This commit is contained in:
Shoaib Meenai 2017-11-02 01:10:05 +00:00
parent 909f5c9b7c
commit c40419d94b
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,4 @@
add_clang_executable(clang-reorder-fields ClangReorderFields.cpp)
add_clang_tool(clang-reorder-fields ClangReorderFields.cpp)
target_link_libraries(clang-reorder-fields
clangBasic
@ -8,5 +8,3 @@ target_link_libraries(clang-reorder-fields
clangTooling
clangToolingCore
)
install(TARGETS clang-reorder-fields RUNTIME DESTINATION bin)