[clang-refactor] Use add_clang_tool CMake template
authorPetr Hosek <phosek@chromium.org>
Wed, 25 Oct 2017 01:11:27 +0000 (01:11 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 25 Oct 2017 01:11:27 +0000 (01:11 +0000)
This allows including clang-refactor in LLVM_DISTRIBUTION_COMPONENTS
to build clang-refactor as part of the toolchain distribution.

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

llvm-svn: 316540

clang/tools/clang-refactor/CMakeLists.txt

index a472c40..c20e83b 100644 (file)
@@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
   Support
   )
 
-add_clang_executable(clang-refactor
+add_clang_tool(clang-refactor
   ClangRefactor.cpp
   TestSupport.cpp
   )