diff options
| author | Phil Christensen <philc@microsoft.com> | 2018-12-19 15:59:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-19 15:59:50 -0800 |
| commit | 16825490343faef17370ce12cb9f7a3bdf855473 (patch) | |
| tree | 7a6fa245b0567d89a355ba3997e7145be168baf8 | |
| parent | 585338f76eea8dbdc1858418839afd47ba79359a (diff) | |
| parent | 7f7b5cce5c1b4f6b6b6e8c6efea59cf2cea1d27a (diff) | |
| download | vcpkg-16825490343faef17370ce12cb9f7a3bdf855473.tar.gz vcpkg-16825490343faef17370ce12cb9f7a3bdf855473.zip | |
Merge pull request #4963 from cenit/dev/cenit/fix_protobuf_ocv3_again
[OpenCV3] fix protobuf patch, again
| -rw-r--r-- | ports/opencv/0005-remove-custom-protobuf-find-package.patch | 7 | ||||
| -rw-r--r-- | ports/opencv/CONTROL | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ports/opencv/0005-remove-custom-protobuf-find-package.patch b/ports/opencv/0005-remove-custom-protobuf-find-package.patch index 2944810e5..91ac137f9 100644 --- a/ports/opencv/0005-remove-custom-protobuf-find-package.patch +++ b/ports/opencv/0005-remove-custom-protobuf-find-package.patch @@ -1,11 +1,14 @@ --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -633,7 +633,7 @@ include(cmake/OpenCVFindLibsGUI.cmake) +@@ -633,7 +633,10 @@ include(cmake/OpenCVFindLibsGUI.cmake) include(cmake/OpenCVFindLibsVideo.cmake) include(cmake/OpenCVFindLibsPerf.cmake) include(cmake/OpenCVFindLAPACK.cmake) -include(cmake/OpenCVFindProtobuf.cmake) +find_package(protobuf) ++if(Protobuf_LIBRARIES) ++ set(HAVE_PROTOBUF TRUE) ++endif() # ---------------------------------------------------------------------------- # Detect other 3rd-party libraries/tools @@ -16,7 +19,7 @@ set(include_dirs ${fw_inc}) set(sources_options "") -set(libs libprotobuf ${LAPACK_LIBRARIES}) -+set(libs protobuf ${LAPACK_LIBRARIES}) ++set(libs protobuf::libprotobuf ${LAPACK_LIBRARIES}) if(OPENCV_DNN_OPENCL AND HAVE_OPENCL) list(APPEND include_dirs ${OPENCL_INCLUDE_DIRS}) else() diff --git a/ports/opencv/CONTROL b/ports/opencv/CONTROL index 5f012d80e..41e73b195 100644 --- a/ports/opencv/CONTROL +++ b/ports/opencv/CONTROL @@ -1,5 +1,5 @@ Source: opencv -Version: 3.4.3-4 +Version: 3.4.3-5 Build-Depends: zlib Description: computer vision library Default-Features: opengl, jpeg, png, tiff, eigen, flann |
