set(LLVM_LINK_COMPONENTS
  Option
  Support
  )

add_clang_tool(clang-refactor
  ClangRefactor.cpp
  TestSupport.cpp
  )

target_link_libraries(clang-refactor
  PRIVATE
  clangAST
  clangBasic
  clangFormat
  clangFrontend
  clangLex
  clangRewrite
  clangTooling
  clangToolingCore
  clangToolingRefactor
  )

install(TARGETS clang-refactor RUNTIME DESTINATION bin)

set(LLVM_LINK_COMPONENTS
  Option
  Support
  )

add_clang_tool(clang-refactor
  ClangRefactor.cpp
  TestSupport.cpp
  )

target_link_libraries(clang-refactor
  PRIVATE
  clangAST
  clangBasic
  clangFormat
  clangFrontend
  clangLex
  clangRewrite
  clangTooling
  clangToolingCore
  clangToolingRefactor
  )

Delete redundant install command for clang-refactor.
[cmake] Delete redundant install command for clang-refactor.

Summary: Install targets for clang tools are controlled by
CLANG_BUILD_TOOLS, and when OFF, cmake issues the following warning:

WARNING: Target "clang-refactor" has EXCLUDE_FROM_ALL set and will not
be built by default but an install rule has been provided for it.
CMake does not define behavior for this case.

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

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@322147 91177308-0d34-0410-b5e6-96231b3b80d8
