doc: fix workaround for old doxygen versions

Fix workaround for old doxygen versions, and put a version requirement
for Doxygen.
This commit is contained in:
Pauli Virtanen 2024-04-21 11:04:24 +03:00 committed by Wim Taymans
parent 8633729a15
commit 29614a2c46
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,9 @@ def main():
if not fn.exists():
page2 = page.replace("page_man_", "md_doc_dox_programs_").replace("-", "_")
fn = mandir / f"{page2}.3"
if not fn.exists():
page2 = page.replace("page_man_", "md_doc_dox_config_").replace("-", "_")
fn = mandir / f"{page2}.3"
else:
page2 = None

View File

@ -516,7 +516,7 @@ endif
generate_docs = get_option('man').enabled() or get_option('docs').enabled()
if get_option('man').allowed() or get_option('docs').allowed()
doxygen = find_program('doxygen', required : generate_docs)
doxygen = find_program('doxygen', required : generate_docs, version : '>=1.9')
pymod = import('python')
python = pymod.find_installation('python3', required: generate_docs)
generate_docs = doxygen.found() and python.found()