Skip to content

[C++] Refactor bundled dependencies from ExternalProject to FetchContent #45303

Open
10 of 10 issues completed
Open

Description

@amoeba

Describe the enhancement requested

This is a tracking issue for refactoring the bundled part of the Arrow C++ build from using CMake ExternalProject to FetchContent. Please comment on this issue if you have anything to add to this post or want to help clarify anything.

Related issues:

Related discussions:

Tasks that depend on FetchContent:

cc @kou @assignUser @raulcd

Component(s)

C++

Sub-issues

Sub-issues

10 of 10 Issues completed
Loading 10 sub-issues

Activity

  1. added this to the 20.0.0 milestone on Jan 20, 2025
  2. assignUser commented on Feb 19, 2025

    @assignUser
    Member

    Thanks, this is a big chunk of work but it will make following version bumps much smoother and make a bunch of workarounds superfluous.

    Design wise a main point we should follow is to use sub dirs for all dependencies to avoid dir level variables leaking into the main build.

  3. modified the milestones: 20.0.0, 21.0.0 on Apr 1, 2025
  4. removed their assignment
    on May 15, 2025
  5. modified the milestones: 21.0.0, 22.0.0 on Jun 30, 2025
  6. modified the milestones: 22.0.0, 23.0.0 on Oct 6, 2025
  7. self-assigned this
    on Nov 19, 2025
  8. raulcd commented on Dec 3, 2025

    @raulcd
    Member

    @kou my plan is to try and simplify abseil further removing all manual target definitions. In order to do I plan to move google-cloud-cpp, I'll tackle Crc32c and nlohmann-json first. Let me know if you think it's better to focus on others.
    BTW, with the last 5 PRs merged (moving abseil, c-ares, re2, protobuf and gRPC to FetchContent) we've been able to reduce 20% of our custom CMake on ThirdPartyToolchain.cmake, approximately 1000 lines less.

  9. kou commented on Dec 4, 2025

    @kou
    Member

    I agree with your plan! Let's use the plan!

    BTW, with the last 5 PRs merged (moving abseil, c-ares, re2, protobuf and gRPC to FetchContent) we've been able to reduce 20% of our custom CMake on ThirdPartyToolchain.cmake, approximately 1000 lines less.

    Great!!!

  10. removed this from the 23.0.0 milestone on Jan 7, 2026
  11. raulcd commented on Apr 15, 2026

    @raulcd
    Member

    Should we close this one now?

  12. kou commented on Apr 15, 2026

    @kou
    Member

    Unfortunately, no. We still have externalproject_add()s:

    $ grep externalproject_add cpp/cmake_modules/ThirdpartyToolchain.cmake
      externalproject_add(snappy_ep
      externalproject_add(brotli_ep
      externalproject_add(glog_ep
      externalproject_add(gflags_ep
        externalproject_add(protobuf_ep_host
      externalproject_add(substrait_ep
      externalproject_add(jemalloc_ep
      externalproject_add(mimalloc_ep
      externalproject_add(gbenchmark_ep
      externalproject_add(rapidjson_ep
      externalproject_add(xsimd_ep
        externalproject_add(zlib_ep
      externalproject_add(zstd_ep
      externalproject_add(bzip2_ep
      externalproject_add(utf8proc_ep
        externalproject_add(orc_ep
  13. added a commit that references this issue on Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions