[clang-tools-extra] r317149 - [clang-reorder-fields] Switch to add_clang_tool

Shoaib Meenai via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 18:10:05 PDT 2017


Author: smeenai
Date: Wed Nov  1 18:10:05 2017
New Revision: 317149

URL: http://llvm.org/viewvc/llvm-project?rev=317149&view=rev
Log:
[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

Modified:
    clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt

Modified: clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt?rev=317149&r1=317148&r2=317149&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt Wed Nov  1 18:10:05 2017
@@ -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-fiel
   clangTooling
   clangToolingCore
   )
-
-install(TARGETS clang-reorder-fields RUNTIME DESTINATION bin)




More information about the cfe-commits mailing list