[flang][cmake] Fix bbc dependencies (#152306)

Re-apply "[flang][cmake] Fix bcc dependencies (#125822)"

It was overwritten due to an automatic merge gone wrong for #124416.

`git cherry-pick f9af5c145f40480d46874b643ca2b1237e9fbb2a` applied in
97cf061e83 ignored the renaming of
FortranCommon into FortranSupport after #125822.

Original commit message:

The Fortran libraries are not part of MLIR, so they should use
target_link_libraries() rather than mlir_target_link_libraries().
This fixes an issue introduced in #20966.
This commit is contained in:
Michael Kruse 2025-08-06 16:39:03 +02:00 committed by GitHub
parent cd4ae911eb
commit 2bb23d4447
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,11 @@ target_link_libraries(bbc PRIVATE
flangFrontend
flangPasses
FlangOpenMPTransforms
FortranSupport
FortranParser
FortranEvaluate
FortranSemantics
FortranLower
)
mlir_target_link_libraries(bbc PRIVATE
@ -37,9 +42,4 @@ mlir_target_link_libraries(bbc PRIVATE
${extension_libs}
MLIRAffineToStandard
MLIRSCFToControlFlow
FortranSupport
FortranParser
FortranEvaluate
FortranSemantics
FortranLower
)