raulcd commented on PR #48318:
URL: https://github.com/apache/arrow/pull/48318#issuecomment-3608567388

   If I apply a patch like on `google-cloud-cpp` I am able to bypass the 
problems:
   ```diff
   --- a/CMakeLists.txt
   +++ b/CMakeLists.txt
   @@ -210,7 +210,11 @@ add_custom_target(google-cloud-cpp-protos)
    add_custom_target(doxygen-docs)
    add_custom_target(all-docfx)
   
   -find_package(absl CONFIG REQUIRED)
   +# Allow using absl from FetchContent (targets already exist)
   +if(NOT TARGET absl::base)
   +  find_package(absl CONFIG REQUIRED)
   +endif()
   +
    if (GOOGLE_CLOUD_CPP_ENABLE_GRPC)
        find_package(gRPC REQUIRED QUIET)
        # `Protobuf_PROTOC_EXECUTABLE` is pretty standard. It has been in use by
   --- a/cmake/IncludeNlohmannJson.cmake
   +++ b/cmake/IncludeNlohmannJson.cmake
   @@ -15,6 +15,11 @@
    # ~~~
   
    function (find_nlohmann_json)
   +    # Allow using nlohmann_json from FetchContent (target already exists)
   +    if(TARGET nlohmann_json::nlohmann_json)
   +        return()
   +    endif()
   +
        find_package(nlohmann_json CONFIG QUIET)
        if (nlohmann_json_FOUND)
            return()
   ```
   Is not strictly for this PR but wanted to share the full picture as the 
current PR is basicaly pre-work for the `google-cloud-cpp` one.


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