Downgrade OpenCV 4.5.1 msg to WARNING

This commit is contained in:
FeRD (Frank Dana)
2021-04-24 14:14:18 -04:00
parent acda566166
commit 3a4f2aec24

View File

@@ -396,7 +396,7 @@ if(ENABLE_OPENCV)
"Build with OpenCV algorithms (requires Protobuf 3)" FORCE)
# If we have version 4.5.1, all hope is lost
elseif(OpenCV_VERSION VERSION_EQUAL 4.5.1)
message(SEND_ERROR [[Incompatible OpenCV version detected
message(WARNING [[Incompatible OpenCV version detected
OpenCV version 4.5.1 contains header errors which make it unable to be used with OpenShot. OpenCV support wil be disabled. Upgrade to OpenCV 4.5.2+ or downgrade to 4.5.0 or earlier, to enable OpenCV.
See https://github.com/opencv/opencv/issues/19260]])
set(ENABLE_OPENCV FALSE CACHE BOOL