[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / flang / tools / fir-opt / CMakeLists.txt
blob43b0c74696f57e80a0110e1d6dcbbcac90a5b0f6
1 add_flang_tool(fir-opt fir-opt.cpp)
2 llvm_update_compile_flags(fir-opt)
3 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
4 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
6 if(FLANG_INCLUDE_TESTS)
7   set(test_libs
8     FIRTestAnalysis
9     MLIRTestIR
10     )
11 endif()
13 target_link_libraries(fir-opt PRIVATE
14   FIRDialect
15   FIRSupport
16   FIRTransforms
17   FIRCodeGen
18   HLFIRDialect
19   HLFIRTransforms
20   FIRAnalysis
21   ${test_libs}
22   ${dialect_libs}
23   ${extension_libs}
25   # TODO: these should be transitive dependencies from a target providing
26   # "registerFIRPasses()"
27   MLIRIR
28   MLIRLLVMDialect
29   MLIRPass
30   MLIRFuncToLLVM
31   MLIRTransforms
32   MLIRAffineToStandard
33   MLIRAnalysis
34   MLIRSCFToControlFlow
35   MLIRParser
36   MLIRSupport
37   MLIRVectorToLLVM
38   MLIROptLib