aboutsummaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-12-13 11:33:41 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:28 +0100
commit7b47b13ea1672de7a0877156ed82b4a84c8a5c64 (patch)
treea758496151f83c8cd79d08ea78263cb8a7858413 /qga
parent781fa471b08e5b3d02f2d38c254a711948a70366 (diff)
meson: use version_compare() to compare version
While a simple lexicographic comparison usually works, it is less robust than a more specific algorithm designed to compare versions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga')
-rw-r--r--qga/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/meson.build b/qga/meson.build
index ff7a8496e4..a6af614891 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -140,7 +140,7 @@ if targetos == 'windows'
qemu_ga_msi_vss = ['-D', 'InstallVss']
deps += qga_vss
endif
- if glib.version() < '2.73.2'
+ if glib.version().version_compare('<2.73.2')
libpcre = 'libpcre1'
else
libpcre = 'libpcre2'