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

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