aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-08-10 18:04:43 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:45 -0400
commitb29b40f4abefa789111a6063b19dde9b276662ff (patch)
treeb6df2b463d56bd827ebcd3ce89b4b3496ce0f366 /meson.build
parente8f3bd71d830f986c950439c0d125f4bab8e0313 (diff)
downloadqemu-b29b40f4abefa789111a6063b19dde9b276662ff.zip
qemu-b29b40f4abefa789111a6063b19dde9b276662ff.tar.gz
qemu-b29b40f4abefa789111a6063b19dde9b276662ff.tar.bz2
meson: avoid unstable module warning with Meson 0.56.0 or newer
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 62bf8a5..808f50b 100644
--- a/meson.build
+++ b/meson.build
@@ -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')