[restored issue] - cmake should detect MPI package, problem with the non portable fortran flag -fallow-argument-mismatch
Hi,
when trying to build paddle I was not able to configure the project because MPI find_package is failing.
The reason comes from the explicit flag -fallow-argument-mismatch which is added to the CMAKE_Fortran_FLAGS_RELEASE
cmake variable.
This flag seems not portable, e.g. my gfortran, GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, says
$ gfortran -fallow-argument-mismatch
gfortran: error: unrecognized command line option ‘-fallow-argument-mismatch’; did you mean ‘-Wno-argument-mismatch’?
I have tried to build removing this option and it works fine and ctest succeeds.
Please remove this non portable compiler flag or find a portable equivalent.
Cheers
Warning: this issue has been restored from backup and can have been changed. For example, all comments have been lost.