[RISCV][NFC] precommit for D159399
[llvm-project.git] / mlir / tools / mlir-translate / CMakeLists.txt
bloba78131b8c356c0f5efe71554b55cbd504c6d50a6
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
5 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
6 get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
8 add_mlir_tool(mlir-translate
9   mlir-translate.cpp
10   )
11 llvm_update_compile_flags(mlir-translate)
12 target_link_libraries(mlir-translate
13   PRIVATE
14   ${dialect_libs}
15   ${translation_libs}
16   ${test_libs}
17   MLIRIR
18   MLIRParser
19   MLIRPass
20   MLIRSPIRVDialect
21   MLIRTranslateLib
22   MLIRSupport
23   )
25 mlir_check_link_libraries(mlir-translate)