Skip to content

Commit

Permalink
meson: use version_compare() to compare version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Dec 31, 2023
1 parent 781fa47 commit 7b47b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qga/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7b47b13

Please sign in to comment.