Author: phosek Date: Wed May 10 11:20:54 2017 New Revision: 302688 URL: http://llvm.org/viewvc/llvm-project?rev=302688&view=rev Log: [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 Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt?rev=302688&r1=302687&r2=302688&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt (original) +++ clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Wed May 10 11:20:54 2017 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits