meson: use version_compare to check meson version
This commit is contained in:

committed by
Evangelos Ribeiro Tzaras

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