smeenai created this revision. Herald added a subscriber: mgorny. `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`.
https://reviews.llvm.org/D39522 Files: tools/clang-rename/CMakeLists.txt Index: tools/clang-rename/CMakeLists.txt =================================================================== --- tools/clang-rename/CMakeLists.txt +++ tools/clang-rename/CMakeLists.txt @@ -3,7 +3,7 @@ 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 @@ clangToolingRefactor ) -install(TARGETS clang-rename RUNTIME DESTINATION bin) - install(PROGRAMS clang-rename.py DESTINATION share/clang COMPONENT clang-rename)
Index: tools/clang-rename/CMakeLists.txt =================================================================== --- tools/clang-rename/CMakeLists.txt +++ tools/clang-rename/CMakeLists.txt @@ -3,7 +3,7 @@ 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 @@ clangToolingRefactor ) -install(TARGETS clang-rename RUNTIME DESTINATION bin) - install(PROGRAMS clang-rename.py DESTINATION share/clang COMPONENT clang-rename)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits