Don't force-build the man-pages, use option instead (#111)

* Only build man-pages and require scdoc if 'man-page' option is true

Co-authored-by: Jonas Frei <8ec426b4-7173-428a-a6dc-3c520b45b0e2@wwsxrfc8.anonaddy.com>
This commit is contained in:
Jonas Frei
2022-04-06 12:29:40 +02:00
committed by GitHub
parent a5895e4670
commit a054e5afdc

View File

@@ -89,8 +89,8 @@ if get_option('fish-completions')
endif
# Man pages
man_pages = get_option('man-pages')
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: man_pages)
if get_option('man-pages')
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: true)
if scdoc.found()
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
@@ -119,3 +119,4 @@ if scdoc.found()
)
endforeach
endif
endif