[clang-tidy][CMake] Make clang-tidy usable as distribution component

Use add_clang_tool rather than add_clang_executable to support
clang-tidy as a distribution component.

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

llvm-svn: 302688
This commit is contained in:
Petr Hosek 2017-05-10 16:20:54 +00:00
parent 6b936bf6c7
commit e60a976fce

View File

@ -2,7 +2,7 @@ set(LLVM_LINK_COMPONENTS
support
)
add_clang_executable(clang-tidy
add_clang_tool(clang-tidy
ClangTidyMain.cpp
)
add_dependencies(clang-tidy