mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
meson: only update-icon-cache when the demos are built
Without building the demos, nothing gets installed into $prefix/share/icons/hicolor. Which makes running `gtk4-update-icon-cache` on the machine causes an error. This is easily reproducible on a Windows machine with MSVC where there is nothing pre-installed on hicolor icon theme and that makes building gtk without the demos fails with "No such file or directory".
This commit is contained in:
parent
27a3998c8f
commit
ed3d9aaaed
@ -897,7 +897,7 @@ if not meson.is_cross_build()
|
||||
gnome.post_install(
|
||||
glib_compile_schemas: true,
|
||||
gio_querymodules: gio_module_dirs,
|
||||
gtk_update_icon_cache: true,
|
||||
gtk_update_icon_cache: get_option('demos'),
|
||||
)
|
||||
else
|
||||
meson.add_install_script('build-aux/meson/post-install.py',
|
||||
|
Loading…
Reference in New Issue
Block a user