Skip to content

Fortran: Add support for submodules on Cray

Cray Fortran does not include the enclosing module name as a prefix of submodules. Define CMAKE_Fortran_SUBMODULE_SEP with an empty string to mean that there is no prefix, and set this for Cray.

Also add a default fallback to use the .mod extension when CMAKE_Fortran_SUBMODULE_EXT is not set. This is a better guess than no extension at all.

Issue: #18925
Topic-rename: fortran-submodule-cray

Edited by Brad King

Merge request reports