Improved detection of fortran compiler for setting the module output directory
This commit is contained in:
parent
3af22be158
commit
924d5b27a6
1 changed files with 3 additions and 3 deletions
|
|
@ -680,11 +680,11 @@ if env['f90_interface'] in ('y','default'):
|
|||
else:
|
||||
print "INFO: Skipping compilation of the Fortran 90 interface."
|
||||
|
||||
if env['F90'] == 'gfortran':
|
||||
if 'gfortran' in env['F90']:
|
||||
env['FORTRANMODDIRPREFIX'] = '-J'
|
||||
elif env['F90'] == 'g95':
|
||||
elif 'g95' in env['F90']:
|
||||
env['FORTRANMODDIRPREFIX'] = '-fmod='
|
||||
elif env['F90'] == 'ifort':
|
||||
elif 'ifort' in env['F90']:
|
||||
env['FORTRANMODDIRPREFIX'] = '-module '
|
||||
|
||||
env['FORTRANMODDIR'] = '${TARGET.dir}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue