kou commented on issue #41331:
URL: https://github.com/apache/arrow/issues/41331#issuecomment-2071253447

   The reason why this is happen:
   
   The case that we use bundled Protobuf: We want ORC to use the same bundled 
Protobuf. But ORC tried system Protobuf before 
`PROTOBUF_INCLUDE_DIR`/`PROTOBUF_LIBRARY`/`PROTOC_LIBRARY` are checked. 
   See also: 
https://github.com/apache/orc/blob/d4f13dc284fc12b7ff109493652473faec8724d3/cmake_modules/FindProtobuf.cmake#L35
   
   But I don't know why `absl::absl_check` couldn't found... It seems that 
`protobuf-config.cmake` finds Abseil:
   
   ```cmake
   cat $(brew --prefix)/lib/cmake/protobuf/protobuf-config.cmake
   # User options
   include("${CMAKE_CURRENT_LIST_DIR}/protobuf-options.cmake")
   
   # Depend packages
   if(NOT ZLIB_FOUND)
     find_package(ZLIB)
   endif()
   if(NOT TARGET absl::strings)
     find_package(absl CONFIG)
   endif()
   if(NOT TARGET utf8_range)
     find_package(utf8_range CONFIG)
   endif()
   
   # Imported targets
   include("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets.cmake")
   
   # protobuf-generate function
   include("${CMAKE_CURRENT_LIST_DIR}/protobuf-generate.cmake")
   
   # CMake FindProtobuf module compatible file
   if(protobuf_MODULE_COMPATIBLE)
     include("${CMAKE_CURRENT_LIST_DIR}/protobuf-module.cmake")
   endif()
   ```


-- 
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]

Reply via email to