tests: Fix fortran + cpp test for ifort

To make ifort like rand we need to link with ifport, or we don't get
rand.
pull/4359/head
Dylan Baker 6 years ago
parent b17ab09eaf
commit 64107f5fe1
  1. 13
      test cases/fortran/9 cpp/meson.build

@ -6,5 +6,16 @@ if cpp.get_id() == 'clang'
error('MESON_SKIP_TEST Clang C++ does not find -lgfortran for some reason.')
endif
e = executable('cppfort', 'main.cpp', 'fortran.f')
fc = meson.get_compiler('fortran')
link_with = []
if fc.get_id() == 'intel'
link_with += fc.find_library('ifport')
endif
e = executable(
'cppfort',
['main.cpp', 'fortran.f'],
dependencies : [link_with],
)
test('C++ FORTRAN', e)

Loading…
Cancel
Save