meson: Improve build when sdl2 not available

Unfortunately doesn't fix 32-bit meson CI
This commit is contained in:
Ryan Pavlik 2020-05-06 15:44:31 -05:00 committed by Jakob Bornecrantz
parent aaa2f0a0bd
commit b52b3ec649

View file

@ -58,7 +58,7 @@ subdir('common')
subdir('openxr') subdir('openxr')
subdir('cli') subdir('cli')
if sdl2.found() if get_option('gui').enabled() or (get_option('gui').auto() and sdl2.found())
subdir('gui') subdir('gui')
endif endif