[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang / tools / clang-scan-deps / CMakeLists.txt
blob10bc0ff23c5482584dcf413049afdf24e3325e72
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   Core
4   Option
5   Support
6   TargetParser
7   )
9 set(LLVM_TARGET_DEFINITIONS Opts.td)
10 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
11 add_public_tablegen_target(ScanDepsOptsTableGen)
13 add_clang_tool(clang-scan-deps
14   ClangScanDeps.cpp
16   DEPENDS
17   ScanDepsOptsTableGen
18   GENERATE_DRIVER
19   )
21 set(CLANG_SCAN_DEPS_LIB_DEPS
22   clangAST
23   clangBasic
24   clangDependencyScanning
25   clangDriver
26   clangFrontend
27   clangLex
28   clangSerialization
29   clangTooling
30   )
32 clang_target_link_libraries(clang-scan-deps
33   PRIVATE
34   ${CLANG_SCAN_DEPS_LIB_DEPS}
35   )