aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-03-27 16:05:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-10-01 21:16:36 +0200
commit6d3226357fb848499aacf609bf628932bca781ea (patch)
treef2ec522bcbb4b889c84313b1e882c803ff4f36f1 /meson.build
parent8a29c20597f98e20c7390300b63fa6ac7d3ad6dd (diff)
meson: multiple names can be passed to dependency()
This is new in Meson 0.60.0. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 4 insertions, 8 deletions
diff --git a/meson.build b/meson.build
index 077441fe88..780654b00c 100644
--- a/meson.build
+++ b/meson.build
@@ -830,14 +830,10 @@ if have_system and get_option('curses').allowed()
}'''
curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncursesw']
- foreach curses_dep : curses_dep_list
- if not curses.found()
- curses = dependency(curses_dep,
- required: false,
- method: 'pkg-config',
- kwargs: static_kwargs)
- endif
- endforeach
+ curses = dependency(curses_dep_list,
+ required: false,
+ method: 'pkg-config',
+ kwargs: static_kwargs)
msg = get_option('curses').enabled() ? 'curses library not found' : ''
curses_compile_args = ['-DNCURSES_WIDECHAR=1']
if curses.found()