From 152ee5102a10cf363222dc23ed9dd65ace2ebfc4 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Fri, 26 Feb 2021 20:34:27 -0800 Subject: meson: ignore 'man-pages' if 'server' is disabled `seatd.1` is the only man page, so it's not necessary to install it or require scdoc when the server is not built. --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cc13546..5b06e57 100644 --- a/meson.build +++ b/meson.build @@ -212,7 +212,11 @@ test( ) ) -scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true) +if get_option('server').enabled() + scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true) +else + scdoc = disabler() +endif if scdoc.found() sh = find_program('sh', native: true) -- cgit v1.2.3