meson: use find_program() to find 'tic'

This commit is contained in:
Daniel Eklöf 2020-05-03 16:39:10 +02:00
parent 6bac1bd257
commit 728db1df0e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -148,11 +148,12 @@ executable(
'log.c', 'log.h', version,
install: true)
tic = find_program('tic', native: true)
custom_target(
'terminfo',
output: 'f',
input: 'foot.info',
command: ['tic', '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
command: [tic, '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'terminfo'))