From 30e182d45406eea4c614e3dcc8128a101533f939 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Thu, 2 Nov 2017 01:11:40 +0000 Subject: [PATCH] [clang-rename] Use add_clang_tool `add_clang_tool` includes a call to `add_clang_executable`, but it also sets up the install rule, and adds an `install-*` target. The latter is required for using `LLVM_DISTRIBUTION_COMPONENTS`. Differential Revision: https://reviews.llvm.org/D39522 llvm-svn: 317150 --- clang/tools/clang-rename/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/tools/clang-rename/CMakeLists.txt b/clang/tools/clang-rename/CMakeLists.txt index 771e3bd..e74f05d 100644 --- a/clang/tools/clang-rename/CMakeLists.txt +++ b/clang/tools/clang-rename/CMakeLists.txt @@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS Support ) -add_clang_executable(clang-rename ClangRename.cpp) +add_clang_tool(clang-rename ClangRename.cpp) target_link_libraries(clang-rename clangBasic @@ -14,8 +14,6 @@ target_link_libraries(clang-rename clangToolingRefactor ) -install(TARGETS clang-rename RUNTIME DESTINATION bin) - install(PROGRAMS clang-rename.py DESTINATION share/clang COMPONENT clang-rename) -- 2.7.4