Skip to content
Snippets Groups Projects
Commit 6d322635 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

meson: multiple names can be passed to dependency()


This is new in Meson 0.60.0.

Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8a29c205
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment