build: Support building with v4l2 installed but driver disabled

This commit is contained in:
Christoph Haag 2020-06-17 11:33:13 +02:00
parent adbafad079
commit fb103659ef

View file

@ -55,7 +55,7 @@ if sdl2.found()
have_conf.set('XRT_HAVE_SDL2', true)
endif
if v4l2.found()
if v4l2.found() and 'v4l2' in drivers
have_conf.set('XRT_HAVE_V4L2', true)
endif