diff options
Diffstat (limited to 'tools/diagtool/CMakeLists.txt')
-rw-r--r-- | tools/diagtool/CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/diagtool/CMakeLists.txt b/tools/diagtool/CMakeLists.txt index beb6c35457c48..96d1c390249c3 100644 --- a/tools/diagtool/CMakeLists.txt +++ b/tools/diagtool/CMakeLists.txt @@ -18,8 +18,14 @@ target_link_libraries(diagtool clangFrontend ) -if(UNIX) - set(CLANGXX_LINK_OR_COPY create_symlink) -else() - set(CLANGXX_LINK_OR_COPY copy) +if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) + install(TARGETS diagtool + COMPONENT diagtool + RUNTIME DESTINATION bin) + + if (NOT CMAKE_CONFIGURATION_TYPES) + add_llvm_install_targets(install-diagtool + DEPENDS diagtool + COMPONENT diagtool) + endif() endif() |