1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-15 03:38:39 +08:00

opencv-4.5.4 enable_cvv fixes #3063

The cvv module is compiled conditionally on HAVE_QT5. But in opencv commit 87d4970e8b4b3251035fdf4a0101335ee5904a58 this variable was renamed to HAVE_QT, so the module is never compiled.

Also check if QT_VERSION_MAJOR >= 5
This commit is contained in:
Sérgio M. Basto
2021-10-14 11:57:41 +01:00
parent bcd47eda5b
commit 2a4348e07c

View File

@@ -1,4 +1,4 @@
if(NOT HAVE_QT5 OR NOT HAVE_CXX11)
if(NOT HAVE_QT OR NOT HAVE_CXX11 OR QT_VERSION_MAJOR LESS 5)
ocv_module_disable(cvv)
return()
endif()