diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-12-17 18:58:52 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-12-17 18:58:52 +0000 |
commit | da7cf85e3c2cf7ba16410e762e1dbea61891b34f (patch) | |
tree | ac229b79b07ea1b3606c4fd028e167882f10c15c /ext | |
parent | a26cce1833b7027af409d2c3e377b62035e16b38 (diff) | |
download | gstreamer-plugins-bad-da7cf85e3c2cf7ba16410e762e1dbea61891b34f.tar.gz |
meson: fix opencv=disabled case if opencv is available on the system
ext/opencv/meson.build:103:2: ERROR: Unknown variable "gstopencv_dep".
Diffstat (limited to 'ext')
-rw-r--r-- | ext/opencv/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build index 9900d8a65..4cb6affa3 100644 --- a/ext/opencv/meson.build +++ b/ext/opencv/meson.build @@ -1,3 +1,7 @@ +if get_option('opencv').disabled() + subdir_done() +endif + gstopencv_sources = [ 'gstcvdilate.cpp', 'gstcvdilateerode.cpp', @@ -110,4 +114,6 @@ if opencv_found install_dir : plugins_install_dir, ) pkgconfig.generate(gstopencv, install_dir : plugins_pkgconfig_install_dir) +elif get_option('opencv').enabled() + error('OpenCV support enabled but required dependencies were not found.') endif |