llvm/flang/lib/Optimizer/Passes/CMakeLists.txt

add_flang_library(flangPasses
  CommandLineOpts.cpp
  Pipelines.cpp

  DEPENDS
  FortranCommon

  LINK_LIBS
  FIRCodeGen
  FIRTransforms
  FlangOpenMPTransforms
  FortranCommon
  HLFIRTransforms
  MLIRPass
  MLIRReconcileUnrealizedCasts
  MLIRSCFToControlFlow
  MLIRSupport
  MLIRTransforms

  LINK_COMPONENTS
  Passes
)