diff options
author | emersion <contact@emersion.fr> | 2019-02-27 22:19:53 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-04 12:50:47 -0500 |
commit | 9593c72616a358188e08db2d3e6f8b74abd29b88 (patch) | |
tree | d68df753d001fe00bffb3837c88f309b245d447a | |
parent | acb23fe89199c3c7a86f2bc94904114f2fbab4a7 (diff) | |
download | sway-9593c72616a358188e08db2d3e6f8b74abd29b88.zip sway-9593c72616a358188e08db2d3e6f8b74abd29b88.tar.gz sway-9593c72616a358188e08db2d3e6f8b74abd29b88.tar.bz2 |
meson: check scdoc version
-rw-r--r-- | meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 53454cd..270dc6b 100644 --- a/meson.build +++ b/meson.build @@ -95,8 +95,9 @@ conf_data.set10('HAVE_SYSTEMD', systemd.found()) conf_data.set10('HAVE_ELOGIND', elogind.found()) conf_data.set10('HAVE_TRAY', have_tray) -scdoc = find_program('scdoc', required: get_option('man-pages')) +scdoc = dependency('scdoc', version: '>=1.9', native: true, required: get_option('man-pages')) if scdoc.found() + scdoc_prog = find_program('scdoc') sh = find_program('sh') mandir = get_option('mandir') man_files = [ @@ -120,7 +121,7 @@ if scdoc.found() input: filename, output: output, command: [ - sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output) + sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output) ], install: true, install_dir: '@0@/man@1@'.format(mandir, section) |