kou commented on issue #41333:
URL: https://github.com/apache/arrow/issues/41333#issuecomment-2073685087
For MSYS2: My guess was wrong. The Protobuf CMake "Module"
(`FindProtobuf.cmake`) not "Config" (`protobuf-config.cmake') was used. I don't
know why our CI uses "Config" not "Module" but this may fix this:
```diff
diff --git a/cpp/cmake_modules/FindProtobufAlt.cmake
b/cpp/cmake_modules/FindProtobufAlt.cmake
index 15fe1b4f27..ef3b1219e1 100644
--- a/cpp/cmake_modules/FindProtobufAlt.cmake
+++ b/cpp/cmake_modules/FindProtobufAlt.cmake
@@ -28,8 +28,12 @@ endif()
if(ProtobufAlt_FIND_QUIETLY)
list(APPEND find_package_args QUIET)
endif()
-find_package(Protobuf ${find_package_args})
-set(ProtobufAlt_FOUND ${Protobuf_FOUND})
+find_package(protobuf CONFIG ${find_package_args})
+set(ProtobufAlt_FOUND ${protobuf_FOUND})
+if(NOT ProtobufAlt_FOUND)
+ find_package(Protobuf ${find_package_args})
+ set(ProtobufAlt_FOUND ${Protobuf_FOUND})
+endif()
if(ProtobufAlt_FOUND)
set(ProtobufAlt_VERSION ${Protobuf_VERSION})
set(ProtobufAlt_VERSION_MAJOR ${Protobuf_VERSION_MAJOR})
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]