You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
project('C++ and FORTRAN', 'cpp', 'fortran')
|
|
|
|
|
|
|
|
cpp = meson.get_compiler('cpp')
|
|
|
|
fc = meson.get_compiler('fortran')
|
|
|
|
|
|
|
|
if cpp.get_id() == 'clang'
|
|
|
|
error('MESON_SKIP_TEST Clang C++ does not find -lgfortran for some reason.')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if build_machine.system() == 'windows' and cpp.get_id() != fc.get_id()
|
|
|
|
error('MESON_SKIP_TEST mixing gfortran with non-GNU C++ does not work.')
|
|
|
|
endif
|
|
|
|
|
|
|
|
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)
|