PKGBUILDs/extra/opencv/protobuf-23.patch

13 lines
394 B
Diff
Raw Normal View History

2023-07-04 13:45:09 +00:00
diff --git a/cmake/OpenCVFindProtobuf.cmake b/cmake/OpenCVFindProtobuf.cmake
index 8835347d1d..473f5fd850 100644
--- a/cmake/OpenCVFindProtobuf.cmake
+++ b/cmake/OpenCVFindProtobuf.cmake
@@ -31,6 +31,7 @@ if(BUILD_PROTOBUF)
set(HAVE_PROTOBUF TRUE)
else()
unset(Protobuf_VERSION CACHE)
+ find_package(Protobuf CONFIG QUIET)
find_package(Protobuf QUIET)
# Backwards compatibility