mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:41:37 +08:00
4ef6ddddd2
Update opencv port to OpenCV 3.4.3.
23 lines
798 B
Diff
23 lines
798 B
Diff
diff --git a/cmake/OpenCVFindProtobuf.cmake b/cmake/OpenCVFindProtobuf.cmake
|
|
index b9171f14f..6e06310b1 100644
|
|
--- a/cmake/OpenCVFindProtobuf.cmake
|
|
+++ b/cmake/OpenCVFindProtobuf.cmake
|
|
@@ -43,17 +43,6 @@ else()
|
|
# end of compatibility block
|
|
|
|
if(Protobuf_FOUND)
|
|
- if(TARGET protobuf::libprotobuf)
|
|
- add_library(libprotobuf INTERFACE)
|
|
- target_link_libraries(libprotobuf INTERFACE protobuf::libprotobuf)
|
|
- else()
|
|
- add_library(libprotobuf UNKNOWN IMPORTED)
|
|
- set_target_properties(libprotobuf PROPERTIES
|
|
- IMPORTED_LOCATION "${Protobuf_LIBRARY}"
|
|
- INTERFACE_INCLUDE_SYSTEM_DIRECTORIES "${Protobuf_INCLUDE_DIR}"
|
|
- )
|
|
- get_protobuf_version(Protobuf_VERSION "${Protobuf_INCLUDE_DIR}")
|
|
- endif()
|
|
set(HAVE_PROTOBUF TRUE)
|
|
endif()
|
|
endif()
|