[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / mlir / tools / mlir-query / CMakeLists.txt
blobef2e5a84b5569b56287ba393a51a8d4a765b0f55
1 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
3 if(MLIR_INCLUDE_TESTS)
4   set(test_libs
5     MLIRTestDialect
6     )
7 endif()
9 add_mlir_tool(mlir-query
10   mlir-query.cpp
11   )
12 llvm_update_compile_flags(mlir-query)
13 target_link_libraries(mlir-query
14   PRIVATE
15   ${dialect_libs}
16   ${test_libs}
17   MLIRQueryLib
18   )
20 mlir_check_link_libraries(mlir-query)