opencv-4.8.0-fix-protobuf.patch 543 B

123456789101112131415161718192021
  1. --- a/cmake/OpenCVFindProtobuf.cmake
  2. +++ b/cmake/OpenCVFindProtobuf.cmake
  3. @@ -31,7 +31,7 @@ if(BUILD_PROTOBUF)
  4. set(HAVE_PROTOBUF TRUE)
  5. else()
  6. unset(Protobuf_VERSION CACHE)
  7. - find_package(Protobuf QUIET)
  8. + find_package(protobuf)
  9. # Backwards compatibility
  10. # Define camel case versions of input variables
  11. @@ -50,7 +50,7 @@ else()
  12. endforeach()
  13. # end of compatibility block
  14. - if(Protobuf_FOUND)
  15. + if(protobuf_FOUND)
  16. if(TARGET protobuf::libprotobuf)
  17. set(Protobuf_LIBRARIES "protobuf::libprotobuf")
  18. else()