From: Nicolas Dufresne Date: Tue, 9 May 2017 19:06:52 +0000 (-0400) Subject: opencv/meson: Ensure variable opencv_found is set X-Git-Tag: 1.19.3~507^2~5292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6929ed1edb2b0567f47de387c11825b6372e058;p=platform%2Fupstream%2Fgstreamer.git opencv/meson: Ensure variable opencv_found is set If the required version is not satisfied, we need to make sure this variable is set, otherwise build will fail. --- diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build index 7d9125cb78..f18e0592d8 100644 --- a/ext/opencv/meson.build +++ b/ext/opencv/meson.build @@ -41,9 +41,9 @@ libopencv3_headers = [ gstopencv_cargs = ['-DGST_HAAR_CASCADES_DIR="@0@"'] opencv_dep = dependency('opencv', version : ['>=2.3.0', '<=3.1.0'], required : false) +opencv_found = opencv_dep.found() -if opencv_dep.found() - opencv_found = true +if opencv_found foreach h : libopencv2_headers if not cxx.has_header(h) message('Needed header "' + h + '" not found')