diff options
| author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-07-26 02:38:23 -0400 |
|---|---|---|
| committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-08-04 20:07:08 -0400 |
| commit | 4cbfb9a08dd8b89aaec7fffd4efbe3a542a67a3d (patch) | |
| tree | 41a19688fc4fc5876b45973be2df534f11cf8374 /test cases/common | |
| parent | 271601124e22695bfa0b0791543473b7164948b1 (diff) | |
| download | meson-4cbfb9a08dd8b89aaec7fffd4efbe3a542a67a3d.tar.gz | |
Add support for MS-MPI.
Diffstat (limited to 'test cases/common')
| -rw-r--r-- | test cases/common/157 mpi/meson.build | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/test cases/common/157 mpi/meson.build b/test cases/common/157 mpi/meson.build index f36b03980..5e9bc563d 100644 --- a/test cases/common/157 mpi/meson.build +++ b/test cases/common/157 mpi/meson.build @@ -1,5 +1,11 @@ project('mpi', 'c', 'cpp') +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 + mpic = dependency('mpi', language : 'c') exec = executable('exec', 'main.c', @@ -7,12 +13,15 @@ exec = executable('exec', test('MPI C', exec) -mpicpp = dependency('mpi', language : 'cpp') -execpp = executable('execpp', - 'main.cpp', - dependencies : [mpicpp]) +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]) -test('MPI C++', execpp) + test('MPI C++', execpp) +endif if add_languages('fortran', required : false) mpifort = dependency('mpi', language : 'fortran') |
