8d19be409b
1. Patch cmake scripts to respect the cmake variable CMAKE_Fortran_FLAGS set by the user
2. In case of gcc10+ add -fallow-argument-mismatch to this variable, and also add ${FFLAGS}
3. Otherwise just add ${FFLAGS}
PR: 246700