XL: Fortran modules not found in their own output directory
The XL Fortran compiler's -qmoddir=
flag sets the module output directory but does not add the directory to the search path for using modules. This is inconsistent with other compilers like the GNU Fortran compiler's -J
flag that does both.
Projects that set a custom Fortran_MODULE_DIRECTORY
or use modules in directories other than the top level and build with the Ninja
generator need to use these flags to tell the compiler to put module files somewhere other than its current working directory. It is reasonable to expect the compiler to find modules in the custom directory too.