diff options
| author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-06-21 04:09:24 -0400 |
|---|---|---|
| committer | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-06-24 14:06:32 -0400 |
| commit | 2c9725a4bb7986a3a73f7717b5da47f691133fc2 (patch) | |
| tree | 8ce6b37003a5220895568683fa7a82476aed5227 | |
| parent | 1d6ed8cac832f1440ebcc74c21db018d8eb485a9 (diff) | |
| download | meson-2c9725a4bb7986a3a73f7717b5da47f691133fc2.tar.gz | |
only test if Zlib found
| -rw-r--r-- | test cases/fortran/10 find library/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test cases/fortran/10 find library/meson.build b/test cases/fortran/10 find library/meson.build index be6688809..2a2ef3111 100644 --- a/test cases/fortran/10 find library/meson.build +++ b/test cases/fortran/10 find library/meson.build @@ -1,9 +1,13 @@ project('find fortran library', 'fortran') -fortranc = meson.get_compiler('fortran') +fc = meson.get_compiler('fortran') sources = ['main.f90', 'gzip.f90'] -zlib = fortranc.find_library('z') +zlib = fc.find_library('z', required: false) + +if not zlib.found() + error('MESON_SKIP_TEST: Z library not available.') +endif exe = executable('zlibtest', sources, dependencies : zlib) test('testzlib', exe) |
