summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch')
-rw-r--r--meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch b/meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch
new file mode 100644
index 000000000..3068bd44d
--- /dev/null
+++ b/meta-oe/recipes-support/opencv/opencv/useoeprotobuf.patch
@@ -0,0 +1,13 @@
1diff --git a/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake b/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
2index eb2a729cc2eb..8717736484de 100644
3--- a/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
4+++ b/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
5@@ -24,7 +24,7 @@ if(NOT BUILD_PROTOBUF AND NOT (DEFINED PROTOBUF_INCLUDE_DIR AND DEFINED PROTOBUF
6 find_package(Protobuf QUIET)
7 endif()
8
9-if(PROTOBUF_FOUND)
10+if(PROTOBUF_FOUND OR (DEFINED PROTOBUF_INCLUDE_DIR AND DEFINED PROTOBUF_LIBRARIES))
11 # nothing
12 else()
13 include(${CMAKE_CURRENT_LIST_DIR}/download_protobuf.cmake)