Commit 7e125ca4 authored by Simon Ser's avatar Simon Ser Committed by Jakob Bornecrantz
Browse files

build: fix Meson build with docs=auto

When docs=auto and doxygen isn't found, the build fails with:

    doc/ ERROR: Tried to use not-found external program in "command"

Instead of always enabling docs when docs=auto, only do so when doxygen
is found.
parent 93218fa9
......@@ -37,7 +37,6 @@ add_project_arguments(cpp.get_supported_arguments([
# Pre-setting these variables
build_docs = false
build_tracking = false
v4l2_required = false
......@@ -49,10 +48,9 @@ openhmd_required = false
# Adding dependencies
# When docs are disabled, doxygen will always appear as "not found"
doxygen = find_program('doxygen', required: get_option('docs'))
if get_option('docs').enabled() or get_option('docs').auto()
build_docs = true
build_docs = doxygen.found()
glslangValidator = find_program('glslangValidator')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment