[PATCH] D39523: [clang-reorder-fields] Switch to add_clang_tool

Shoaib Meenai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 17:52:16 PDT 2017


smeenai created this revision.
Herald added a subscriber: mgorny.

`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`.


https://reviews.llvm.org/D39523

Files:
  clang-reorder-fields/tool/CMakeLists.txt


Index: clang-reorder-fields/tool/CMakeLists.txt
===================================================================
--- clang-reorder-fields/tool/CMakeLists.txt
+++ clang-reorder-fields/tool/CMakeLists.txt
@@ -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 @@
   clangTooling
   clangToolingCore
   )
-
-install(TARGETS clang-reorder-fields RUNTIME DESTINATION bin)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39523.121219.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171102/7abc3dbb/attachment.bin>


More information about the cfe-commits mailing list