1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

meson: use version_compare to check meson version

This commit is contained in:
Chris Talbot 2022-12-06 17:01:40 -05:00 committed by Evangelos Ribeiro Tzaras
parent fc44ec1f67
commit e24fd6b5cd

View file

@ -138,8 +138,7 @@ subdir('data')
# gnome.post_install() is available since meson 0.59.0
# Distributions use their own tooling (e.g. postinst, triggers, etc)
# so it is okay if the post_install() is not run on distro builds
m_ver = meson.version().split('.')
if m_ver[0].to_int() > 0 or m_ver[1].to_int() > 58
if meson.version().version_compare('>=0.59.0')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,