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.
This commit is contained in:
Aleksei Bavshin 2021-02-26 20:34:27 -08:00 committed by Kenny Levinsen
parent 65d91351ab
commit 152ee5102a

View file

@ -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)