diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-12-20 16:21:46 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-01-06 13:49:34 -0800 |
commit | ddb244f2ba5dc4dbdf0f685f05d505a6f0bffa40 (patch) | |
tree | 11ab1b1d3b0ea69b8bb07d86c80ab0c55339d00f | |
parent | c61da9f4a99dfb85012640eb5f66e9b2fedd1573 (diff) | |
download | meson-ddb244f2ba5dc4dbdf0f685f05d505a6f0bffa40.zip meson-ddb244f2ba5dc4dbdf0f685f05d505a6f0bffa40.tar.gz meson-ddb244f2ba5dc4dbdf0f685f05d505a6f0bffa40.tar.bz2 |
tests: skip mpi test if mpi not installed
-rw-r--r-- | test cases/frameworks/17 mpi/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/frameworks/17 mpi/meson.build b/test cases/frameworks/17 mpi/meson.build index 17acd71..01ad61d 100644 --- a/test cases/frameworks/17 mpi/meson.build +++ b/test cases/frameworks/17 mpi/meson.build @@ -6,7 +6,10 @@ 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') +mpic = dependency('mpi', language : 'c', required : false) +if not mpic.found() + error('MESON_SKIP_TEST: MPI not found, skipping.') +endif exec = executable('exec', 'main.c', dependencies : [mpic]) |