meson: fix build with opencv=enabled and opencv4. Fixes #964
authorChristoph Reiter <reiter.christoph@gmail.com>
Sun, 5 May 2019 20:11:16 +0000 (22:11 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 7 Aug 2019 22:23:10 +0000 (23:23 +0100)
commitba44da0ad046a181f73e05e6705514b300adad9b
tree9af3639455581aaf2e392457a214839d56418b42
parent1a0d5212771462ba745ebda96573142e1c4c6510
meson: fix build with opencv=enabled and opencv4. Fixes #964

Having the opencv feature enabled would lead to the opencv3 dependency
being required which failed with only opencv4 being available.

Instead don't require anything and error out at the end if the feature was enabled
but no dependency was found.
gst-libs/gst/opencv/meson.build