Fortran submodule support for NAG
The recently released NAG 7.0 compiler supports submodules for the first time. CMake doesn't understand the NAG convention for naming the compiled submodule files and so fails when it tries to copy the file into the CMakeFiles
tree to a .stamp
file.
For
submodule (foo) bar
the NAG compiler generates the module file foo.bar.sub
and the Fortran names are folded to lower case in the file name.