meson: fix build with vpx 1.3.x

vpx >= 1.4.0 is optional
This commit is contained in:
Tim-Philipp Müller 2016-09-18 20:55:31 +01:00
parent eaae016884
commit 2179b9b9d6

View file

@ -42,7 +42,7 @@ if vpx_dep.found()
message('WARNING: libvpx was built without any encoder or decoder features!')
endif
if dependency('vpx', version : '>=1.4.0').found()
if dependency('vpx', version : '>=1.4.0', required : false).found()
vpx_args += '-DHAVE_VPX_1_4'
endif