diff --git a/src/xrt/targets/meson.build b/src/xrt/targets/meson.build index f5d3c9122..202afa036 100644 --- a/src/xrt/targets/meson.build +++ b/src/xrt/targets/meson.build @@ -58,7 +58,7 @@ subdir('common') subdir('openxr') subdir('cli') -if sdl2.found() +if get_option('gui').enabled() or (get_option('gui').auto() and sdl2.found()) subdir('gui') endif