CMAKE_Fortran_MODOUT_FLAG
Most Fortran compilers write .mod files out by default. For others, this stores the flag needed to enable module output.