mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
781fa471b0
commit
7b47b13ea1
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue