Backport of "meson: fix build with opencv=enabled and opencv4. Fixes #964" into 1.16
Backport of !322 (merged) "meson: fix build with opencv=enabled and opencv4. Fixes #964 (closed)".
Commits:
- 22c6a408 meson: fix build with opencv=enabled and opencv4. Fixes #964 (closed)