[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / mlir / examples / transform-opt / CMakeLists.txt
blob8e23555d0b5d734d70e04dda68016627f0de673d
1 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
2 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
3 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
5 set(LIBS
6   MLIRAnalysis
7   MLIRIR
8   MLIRParser
9   MLIRSupport
10   MLIRTransformDialect
11   MLIRTransformDialectTransforms
12   MLIRTransforms
13   ${dialect_libs}
14   ${conversion_libs}
15   ${extension_libs}
18 add_mlir_tool(mlir-transform-opt
19   mlir-transform-opt.cpp
21   DEPENDS
22   ${LIBS}
24 target_link_libraries(mlir-transform-opt PRIVATE ${LIBS})
25 llvm_update_compile_flags(mlir-transform-opt)
26 mlir_check_all_link_libraries(mlir-transform-opt)