diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/meson.build | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/meson.build b/doc/meson.build index 4f316a3..2cceed5 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -4,12 +4,16 @@ docdir = get_option('datadir') / 'doc' doxygen = find_program('doxygen', required: get_option('docs')) -sphinxygen = find_program('sphinxygen', required: false) sphinx_build = find_program('sphinx-build', required: get_option('docs')) -if not sphinxygen.found() - subproject('sphinxygen') - sphinxygen = find_program('sphinxygen', required: get_option('docs')) +if doxygen.found() and sphinx_build.found() + sphinxygen = find_program('sphinxygen', required: false) + if not sphinxygen.found() + subproject('sphinxygen') + sphinxygen = find_program('sphinxygen', required: get_option('docs')) + endif +else + sphinxygen = disabler() endif build_docs = doxygen.found() and sphinxygen.found() and sphinx_build.found() |