diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2020-08-31 20:08:12 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-09-01 21:32:36 +0200 |
commit | 1867f29d4274fec57876246f206bac620cf23828 (patch) | |
tree | d99798e7744e45dcc650af4a5b38fbff6c2013c6 /meson.build | |
parent | ad214dc3fe6fbbf6e32532015ca54a484c5841b4 (diff) |
meson: fix manpage generation for cross builds
We want to use the scdoc of the host system not the target system, so
pass the `native: true` parameter to meson.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build index bc167e8..cf2b445 100644 --- a/meson.build +++ b/meson.build @@ -180,10 +180,11 @@ test( ) ) -scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7') +scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true) if scdoc.found() - sh = find_program('sh') + sh = find_program('sh', native: true) + scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) man_pages = ['seatd.1.scd'] @@ -199,7 +200,7 @@ if scdoc.found() input: 'man/' + src, output: output, command: [ - sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.get_pkgconfig_variable('scdoc'), output) + sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output) ], install: true, install_dir: '@0@/man@1@'.format(mandir, section) |