forked from OSchip/llvm-project
[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:
parent
909f5c9b7c
commit
c40419d94b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue