mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:19:00 +08:00
26 lines
817 B
Diff
26 lines
817 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -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
|
|
--- a/modules/dnn/CMakeLists.txt
|
|
+++ b/modules/dnn/CMakeLists.txt
|
|
@@ -78,7 +78,7 @@ endif()
|
|
|
|
set(include_dirs ${fw_inc})
|
|
set(sources_options "")
|
|
-set(libs libprotobuf ${LAPACK_LIBRARIES})
|
|
+set(libs protobuf::libprotobuf ${LAPACK_LIBRARIES})
|
|
if(OPENCV_DNN_OPENCL AND HAVE_OPENCL)
|
|
list(APPEND include_dirs ${OPENCL_INCLUDE_DIRS})
|
|
else()
|