Inconsistent assumptions on semantic of FortranCInterface_GLOBAL_FOUND
As discussed in here cmake/cmake#18565 (closed),
FortranCInterface_GLOBAL_FOUND can be set even with an empty mangling. I see this happening when compiling with the XL compiler.
FortranCInterface_GLOBAL_FOUND is used to set
CATALYST_FORTRAN_USING_MANGLING. The consequence is that the guard in
FortranAdaptorAPI.cxx is not activated, and given that the mangling is empty the generated symbols will have a duplicate and linking will, therefore, fail.
I see this in version 5.5.0 but it seems to persist in the current version as well.