summaryrefslogtreecommitdiff
path: root/clang/tools/diagtool/CMakeLists.txt
blob: f1fd9de03be0ea5506e0ef69dbe845034f4aabaf (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set( LLVM_LINK_COMPONENTS
  support
  )

set( LLVM_USED_LIBS
  clangBasic
  clangLex
  clangSema
  )

add_clang_executable(diagtool
  diagtool_main.cpp
  DiagTool.cpp
  ListWarnings.cpp
)

if(UNIX)
  set(CLANGXX_LINK_OR_COPY create_symlink)
else()
  set(CLANGXX_LINK_OR_COPY copy)
endif()

install(TARGETS diagtool 
  RUNTIME DESTINATION bin)