Skip to content

Commit

Permalink
[Fortran] Add extra_inc_dirs to compile Fortran sample
Browse files Browse the repository at this point in the history
One of the Fortran samples needs to include the extra_inc_dirs variable
so that system header files in non-standard locations will be found.
  • Loading branch information
bryanwweber committed Aug 2, 2020
1 parent ae1b664 commit 9dfb7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/f77/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ samples = [('ctlib', ['ctlib.f']),
('isentropic', ['isentropic.f'])]

ftn_demo = localenv.Object('demo_ftnlib.cpp',
CPPPATH=['#include', localenv['boost_inc_dir']])
CPPPATH=['#include', localenv['boost_inc_dir'],
localenv['extra_inc_dirs']])
for program_name, fortran_sources in samples:
buildSample(localenv.Program, program_name,
fortran_sources + ftn_demo,
Expand Down

0 comments on commit 9dfb7c2

Please sign in to comment.