Skip to content

dm-tree build failure on macOS with CMake 4.0.0 and Python 3.13 #130

@fcotizelati

Description

@fcotizelati

Hi there,

I'm encountering an issue building the dm-tree package on macOS (ARM architecture) with Python 3.13 and CMake 4.0.0. The build fails during the configuration step with the following error:

CMake Error at .../pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.
  
  Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
  
  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

I confirmed that I have CMake 4.0.0 installed (via Homebrew), so the issue doesn't appear to be with an outdated CMake version.

It seems that dm-tree's CMake configuration (likely within its CMakeLists.txt) might be using an older syntax or is not compatible with the current CMake policies. A potential workaround could be to pass the flag -DCMAKE_POLICY_VERSION_MINIMUM=3.5 during the build process, but I'm not sure how best to integrate that into the package's build configuration.

Could you please advise if there's a plan to update the CMake configuration for dm-tree to support newer CMake versions? Alternatively, is there a recommended workaround for building dm-tree under these conditions?

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions