Ifort for Windows has a /module:path option to "specify path where mod files should be placed and first location to look for mod files". Is there an environment variable I can set to do the same thing, so that I don't need to use the /module:path option each time I compile? I don't want to store module files in the local directory, because they will overwrite the .mod files produced by gfortran. Thanks.
Thanks. Setting INCLUDE will tell ifort where to look for module files, but when compiling, module files are still created in the local directory, which I want to avoid. Perhaps I should just use the /module:path option.
Sorry, I misunderstood. No, there isn't an environment variable for the module output (nor the object output). Why not set the default folder to where you want the output and compile the sources from elsewhere?