Fusionmate
Fusionmate

Reputation: 689

ifort - separate object and mod files into different folder

I'm able to compile and output the object file ".o" into my "obj" folder. But, I can't make the ".mod" into my "mod" folder. The following is my current command:

ifort -c foo.f90 -o../obj/foo.o

Upvotes: 2

Views: 3095

Answers (1)

IanH
IanH

Reputation: 21431

Use the -module command line option to specify the directory for the output of the mod files that result from compiling Fortran modules.

Upvotes: 9

Related Questions