Merge pull request #664 from ferdnyc/defense-against-the-dark-opencv451

Downgrade OpenCV 4.5.1 msg to WARNING
This commit is contained in:
Frank Dana
2021-04-24 11:51:54 -07:00
committed by GitHub
+1 -1
View File
@@ -396,7 +396,7 @@ if(ENABLE_OPENCV)
"Build with OpenCV algorithms (requires Protobuf 3)" FORCE) "Build with OpenCV algorithms (requires Protobuf 3)" FORCE)
# If we have version 4.5.1, all hope is lost # If we have version 4.5.1, all hope is lost
elseif(OpenCV_VERSION VERSION_EQUAL 4.5.1) 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. 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]]) See https://github.com/opencv/opencv/issues/19260]])
set(ENABLE_OPENCV FALSE CACHE BOOL set(ENABLE_OPENCV FALSE CACHE BOOL