The Meson Build System
http://mesonbuild.com/
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.
34 lines
785 B
34 lines
785 B
8 years ago
|
project('mpi', 'c', 'cpp')
|
||
|
|
||
7 years ago
|
cc = meson.get_compiler('c')
|
||
|
|
||
|
if build_machine.system() == 'windows' and cc.get_id() != 'msvc'
|
||
|
error('MESON_SKIP_TEST: MPI not available on Windows without MSVC.')
|
||
|
endif
|
||
|
|
||
8 years ago
|
mpic = dependency('mpi', language : 'c')
|
||
|
exec = executable('exec',
|
||
|
'main.c',
|
||
|
dependencies : [mpic])
|
||
|
|
||
|
test('MPI C', exec)
|
||
|
|
||
7 years ago
|
if build_machine.system() != 'windows'
|
||
|
# C++ MPI not supported by MS-MPI used on AppVeyor.
|
||
|
mpicpp = dependency('mpi', language : 'cpp')
|
||
|
execpp = executable('execpp',
|
||
|
'main.cpp',
|
||
|
dependencies : [mpicpp])
|
||
8 years ago
|
|
||
7 years ago
|
test('MPI C++', execpp)
|
||
|
endif
|
||
8 years ago
|
|
||
|
if add_languages('fortran', required : false)
|
||
|
mpifort = dependency('mpi', language : 'fortran')
|
||
|
exef = executable('exef',
|
||
|
'main.f90',
|
||
|
dependencies : [mpifort])
|
||
|
|
||
|
test('MPI Fortran', exef)
|
||
|
endif
|