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".
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',