[libc][complex] fix buildbot errors (#121141)
[llvm-project.git] / mlir / examples / minimal-opt / CMakeLists.txt
blobdea9bd494c8a5b86bff62e081f17e84d71ec5a91
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
6 set(LIBS
7   MLIRParser
8   MLIRSupport
9   MLIRIR
12 add_mlir_tool(mlir-cat
13   mlir-cat.cpp
14   PARTIAL_SOURCES_INTENDED
16   DEPENDS
17   ${LIBS}
18   )
19 target_link_libraries(mlir-cat PRIVATE ${LIBS})
20 llvm_update_compile_flags(mlir-cat)
21 mlir_check_all_link_libraries(mlir-cat)
23 list(APPEND LIBS
24   MLIROptLib
25   MLIRPass
27 add_mlir_tool(mlir-minimal-opt
28   mlir-minimal-opt.cpp
29   PARTIAL_SOURCES_INTENDED
31   DEPENDS
32   ${LIBS}
33   )
34 target_link_libraries(mlir-minimal-opt PRIVATE ${LIBS})
35 llvm_update_compile_flags(mlir-minimal-opt)
36 mlir_check_all_link_libraries(mlir-minimal-opt)
39 list(APPEND LIBS
40   MLIROptLib
41   MLIRPass
42   MLIRTransforms
44 add_mlir_tool(mlir-minimal-opt-canonicalize
45   mlir-minimal-opt-canonicalize.cpp
46   PARTIAL_SOURCES_INTENDED
48   DEPENDS
49   ${LIBS}
50   )
51 target_link_libraries(mlir-minimal-opt-canonicalize PRIVATE ${LIBS})
52 llvm_update_compile_flags(mlir-minimal-opt-canonicalize)
53 mlir_check_all_link_libraries(mlir-minimal-opt-canonicalize)