vcpkg/ports/opencv/0005-remove-protobuf-target.patch
Tsukasa Sugiura 4ef6ddddd2 [opencv] Update to OpenCV 3.4.3 (#4636)
Update opencv port to OpenCV 3.4.3.
2018-11-04 11:24:45 -08:00

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()