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:
parent
65d91351ab
commit
152ee5102a
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
if scdoc.found()
|
||||||
sh = find_program('sh', native: true)
|
sh = find_program('sh', native: true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue