opencv: allow compilation against 4.2.x

This commit is contained in:
Nicola Murino 2019-12-26 22:43:35 +01:00
parent 5298d95195
commit a2cfd93891

View file

@ -65,7 +65,7 @@ if opencv_found
endif endif
endforeach endforeach
else else
opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.2.0'], required : false) opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.3.0'], required : false)
opencv_found = opencv_dep.found() opencv_found = opencv_dep.found()
if opencv_found if opencv_found
foreach h : libopencv4_headers foreach h : libopencv4_headers