diff --git a/clang/tools/diagtool/CMakeLists.txt b/clang/tools/diagtool/CMakeLists.txt --- a/clang/tools/diagtool/CMakeLists.txt +++ b/clang/tools/diagtool/CMakeLists.txt @@ -2,7 +2,7 @@ Support ) -add_clang_executable(diagtool +add_clang_tool(diagtool diagtool_main.cpp DiagTool.cpp DiagnosticNames.cpp @@ -17,15 +17,3 @@ clangBasic clangFrontend ) - -if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) - install(TARGETS diagtool - COMPONENT diagtool - RUNTIME DESTINATION bin) - - if (NOT LLVM_ENABLE_IDE) - add_llvm_install_targets(install-diagtool - DEPENDS diagtool - COMPONENT diagtool) - endif() -endif()