[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / mlir / tools / mlir-reduce / CMakeLists.txt
blob8549dbf805f54ed690c6ff0ce10d59c79f13208a
1 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
2 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
4 if(MLIR_INCLUDE_TESTS)
5   set(test_libs
6     MLIRTestDialect
7     )
8 endif()
10 set(LIBS
11   ${conversion_libs}
12   ${dialect_libs}
13   ${test_libs}
14   MLIRDialect
15   MLIRIR
16   MLIRPass
17   MLIRReduceLib
18   )
20 add_mlir_tool(mlir-reduce
21   mlir-reduce.cpp
23   DEPENDS
24   ${LIBS}
25   )
27 target_link_libraries(mlir-reduce PRIVATE ${LIBS})
28 llvm_update_compile_flags(mlir-reduce)
30 mlir_check_all_link_libraries(mlir-reduce)