aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Bavshin <alebastr89@gmail.com>2021-02-26 20:34:27 -0800
committerKenny Levinsen <kl@kl.wtf>2021-02-27 17:45:07 +0100
commit152ee5102a10cf363222dc23ed9dd65ace2ebfc4 (patch)
treebc3847b01a77a1484f20b0972004703ebaf326b7
parent65d91351ab8c2336601369b718cdc517ecbe6041 (diff)
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.
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
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)