[clang-tools-extra] r325381 - [clang-include-fixer] Use add_clang_tool instead add_clang_executable

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 16 12:25:45 PST 2018


Author: phosek
Date: Fri Feb 16 12:25:45 2018
New Revision: 325381

URL: http://llvm.org/viewvc/llvm-project?rev=325381&view=rev
Log:
[clang-include-fixer] Use add_clang_tool instead add_clang_executable

This makes it possible to include clang-include-fixer as distribution
component when building Clang based toolchain using CMake.

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

Modified:
    clang-tools-extra/trunk/include-fixer/tool/CMakeLists.txt

Modified: clang-tools-extra/trunk/include-fixer/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/CMakeLists.txt?rev=325381&r1=325380&r2=325381&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/include-fixer/tool/CMakeLists.txt Fri Feb 16 12:25:45 2018
@@ -1,6 +1,6 @@
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
-add_clang_executable(clang-include-fixer
+add_clang_tool(clang-include-fixer
   ClangIncludeFixer.cpp
   )
 




More information about the cfe-commits mailing list