Skip to content
Snippets Groups Projects
Commit 030d93dc authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

meson: Actually listen to docs option

parent ba50cefc
No related branches found
Tags
No related merge requests found
...@@ -49,6 +49,11 @@ openhmd_required = false ...@@ -49,6 +49,11 @@ openhmd_required = false
# Adding dependencies # Adding dependencies
# #
doxygen = find_program('doxygen', required: get_option('docs'))
if get_option('docs').enabled() or get_option('docs').auto()
build_docs = true
endif
glslangValidator = find_program('glslangValidator') glslangValidator = find_program('glslangValidator')
avcodec = dependency('libavcodec', required: false) avcodec = dependency('libavcodec', required: false)
...@@ -67,8 +72,6 @@ if not opencv.found() ...@@ -67,8 +72,6 @@ if not opencv.found()
opencv = dependency('opencv', required: get_option('tracking')) opencv = dependency('opencv', required: get_option('tracking'))
endif endif
doxygen = find_program('doxygen', required: get_option('docs'))
pthreads = cc.find_library('pthread', required: true) pthreads = cc.find_library('pthread', required: true)
if get_option('tracking').enabled() or get_option('tracking').auto() if get_option('tracking').enabled() or get_option('tracking').auto()
...@@ -171,10 +174,6 @@ if sdl2.found() ...@@ -171,10 +174,6 @@ if sdl2.found()
add_project_arguments('-DXRT_HAVE_SDL2', language: ['c', 'cpp']) add_project_arguments('-DXRT_HAVE_SDL2', language: ['c', 'cpp'])
endif endif
if doxygen.found()
build_docs = true
endif
# #
# Go down sub directories # Go down sub directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment