summaryrefslogtreecommitdiffstats
path: root/tools/diagtool/CMakeLists.txt
blob: a107cbd70bb8cfa1515b80705667c37aac24cd30 (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
25
26
27
28
29
30
31
32
set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  asmparser
  support
  mc
  )

add_clang_executable(diagtool
  diagtool_main.cpp
  DiagTool.cpp
  DiagnosticNames.cpp
  ListWarnings.cpp
  ShowEnabledWarnings.cpp
  TreeView.cpp
)

add_dependencies(diagtool
  ClangDiagnosticIndexName
  )

target_link_libraries(diagtool
  clangBasic
  clangLex
  clangSema
  clangFrontend
  )

if(UNIX)
  set(CLANGXX_LINK_OR_COPY create_symlink)
else()
  set(CLANGXX_LINK_OR_COPY copy)
endif()
OpenPOWER on IntegriCloud