meson: avoid unstable module warning with Meson 0.56.0 or newer

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-08-10 18:04:43 +02:00
parent e8f3bd71d8
commit b29b40f4ab

View File

@ -3,7 +3,11 @@ project('qemu', ['c'], meson_version: '>=0.55.0',
version: run_command('head', meson.source_root() / 'VERSION').stdout().strip())
not_found = dependency('', required: false)
keyval = import('unstable-keyval')
if meson.version().version_compare('>=0.56.0')
keyval = import('keyval')
else
keyval = import('unstable-keyval')
endif
ss = import('sourceset')
sh = find_program('sh')