Skip to content

[C++] Several Bundled Dependencies fail with 4.0 #45985

Description

@assignUser

Describe the bug, including details regarding any error messages, version, and platform.

CMake 4.0 removes support for cmake_minimum_required(VERSION 3.5) or less and several of our bundled dependencies still use this. When they are built with 4.0 the build fails.

Confirmed deps listed as sub-issues.

rapidjson and gflags have not fixed this issue and don't seem to want to release anything. Should we really depend on something like this?

Component(s)

C++

Activity

  1. changed the title [-][C++] Several Bundeled Dependencies fail with 4.0[/-] [+][C++] Several Bundled Dependencies fail with 4.0[/+] on Apr 1, 2025
  2. lriggs commented on Apr 2, 2025

    @lriggs
    Contributor

    This is a particular problem on the Mac because brew updated cmake to 4.0 and there isn't a way to install an older version (through brew). I'm running into this now trying to build jars with my fork of arrow-java.

  3. assignUser commented on Apr 2, 2025

    @assignUser
    MemberAuthor

    You can workaround it locally by setting this envvar https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_VERSION_MINIMUM.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions