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)

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)

Add libsupport to list of libraries to link into diagtool
Add libsupport to list of libraries to link into diagtool

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@137110 91177308-0d34-0410-b5e6-96231b3b80d8
