Fix 'meson install' when cross compiling

Prevent execution of target's fc-cache on host when installing
This commit is contained in:
James Lee 2020-10-24 19:18:55 +11:00
parent abc723366d
commit b368a0e380
1 changed files with 5 additions and 1 deletions

View File

@ -6,4 +6,8 @@ fccache = executable('fc-cache', ['fc-cache.c', fcstdint_h, alias_headers, ft_al
)
tools_man_pages += ['fc-cache']
meson.add_install_script('../install-cache.py', fccache.full_path())
# Do not try to execute target's fc-cache on host when cross compiling
if not meson.is_cross_build()
meson.add_install_script('../install-cache.py', fccache.full_path())
endif