meson: Do not run fc-cache when installing into a DESTDIR

It cause permission denied errors because it is often not run as root.
This requires Meson >=0.57.0.
This commit is contained in:
Xavier Claessens 2022-09-07 09:32:31 -04:00
parent 0c7bb301f4
commit 952a04a9f2
2 changed files with 3 additions and 2 deletions

View File

@ -9,5 +9,6 @@ tools_man_pages += ['fc-cache']
# Do not try to execute target's fc-cache on host when cross compiling
if get_option('cache-build').enabled() and not meson.is_cross_build()
meson.add_install_script(fccache, '-s', '-f', '-v')
meson.add_install_script(fccache, '-s', '-f', '-v',
skip_if_destdir: true)
endif

View File

@ -1,6 +1,6 @@
project('fontconfig', 'c',
version: '2.14.0',
meson_version : '>= 0.56.0',
meson_version : '>= 0.57.0',
default_options: [ 'buildtype=debugoptimized'],
)