Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions cpp/cmake_modules/Findc-aresAlt.cmake

This file was deleted.

12 changes: 2 additions & 10 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2055,22 +2055,14 @@ endmacro()

if(ARROW_WITH_GRPC)
if(c-ares_SOURCE STREQUAL "AUTO")
find_package(c-ares QUIET)
find_package(c-ares QUIET CONFIG)
if(NOT c-ares_FOUND)
# Fedora doesn't package the CMake config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean building anything which requires gRPC on Fedora will fail?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No -- it means that the system package cannot be used to build gRPC from source. So if -DgRPC_SOURCE=BUNDLED and the system c-ares is found, then gRPC will fail to build

find_package(c-aresAlt)
endif()
if(NOT c-ares_FOUND AND NOT c-aresAlt_FOUND)
build_cares()
endif()
elseif(c-ares_SOURCE STREQUAL "BUNDLED")
build_cares()
elseif(c-ares_SOURCE STREQUAL "SYSTEM")
find_package(c-ares QUIET)
if(NOT c-ares_FOUND)
# Fedora doesn't package the CMake config
find_package(c-aresAlt REQUIRED)
endif()
find_package(c-ares REQUIRED CONFIG)
endif()

# TODO: Don't use global includes but rather target_include_directories
Expand Down