-
Notifications
You must be signed in to change notification settings - Fork 68
Description
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!