From 924d5b27a62b695e1758bb526c7014cc5856cf38 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 7 May 2012 18:20:25 +0000 Subject: [PATCH] Improved detection of fortran compiler for setting the module output directory --- SConstruct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index dd7401278..a7b2c4897 100644 --- a/SConstruct +++ b/SConstruct @@ -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}'