diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-12-19 20:05:24 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-01-06 13:49:34 -0800 |
commit | 97d2a9d84c8d42af9e80de10f8a619c0f11f9d2f (patch) | |
tree | 3dff8b2376e3902911102f96690d4b2b766f6676 | |
parent | ae4bd83493378dfb4f7635f36d4edd1fbeb22a66 (diff) | |
download | meson-97d2a9d84c8d42af9e80de10f8a619c0f11f9d2f.zip meson-97d2a9d84c8d42af9e80de10f8a619c0f11f9d2f.tar.gz meson-97d2a9d84c8d42af9e80de10f8a619c0f11f9d2f.tar.bz2 |
tests: skip objc nsstring test if gnustep is not installed
-rw-r--r-- | test cases/objc/2 nsstring/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/objc/2 nsstring/meson.build b/test cases/objc/2 nsstring/meson.build index a877d74..7f2483f 100644 --- a/test cases/objc/2 nsstring/meson.build +++ b/test cases/objc/2 nsstring/meson.build @@ -5,7 +5,10 @@ if host_machine.system() == 'darwin' elif host_machine.system() == 'cygwin' error('MESON_SKIP_TEST GNUstep is not packaged for Cygwin.') else - dep = dependency('gnustep') + dep = dependency('gnustep', required : false) + if not dep.found() + error('MESON_SKIP_TEST: GNUstep is not installed') + endif if host_machine.system() == 'linux' and meson.get_compiler('objc').get_id() == 'clang' error('MESON_SKIP_TEST: GNUstep is broken on Linux with Clang') endif |