Skip to content

Unable to install on cmake 4.0 #28

Closed

Description

@bmcfee

TLDR is in the title, the package does not install with the most recent cmake, and trying to do so produces the following error:

[...]
-- Detecting CXX compile features - done
        CMake Error at build/temp.linux-x86_64-cpython-38/samplerate/_deps/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'm seeing this a lot now that the github actions runners updated to cmake 4.0 yesterday, and everything is now failing.

Note: this is likely inherited from pybind11, but it's not clear to me that this is limited to pybind11, so I'm raising it here. In case pybind11 cuts a new release and that fixes the problem entirely, we can close this out.

Activity

  1. fakufaku commented on May 23, 2025

    @fakufaku
    Collaborator

    Thanks for the heads up. I'll try to look into it when I get a bit of time.

  2. fakufaku commented on Sep 27, 2025

    @fakufaku
    Collaborator

    @bmcfee Sorry it took me so long to fix this. Fix in PR #29

  3. lmachineone commented on Oct 10, 2025

    @lmachineone

    Is it possible to update pypi with latest changes?

  4. fakufaku commented on Oct 11, 2025

    @fakufaku
    Collaborator

    @perinm Done!

  5. fakufaku commented on Oct 11, 2025

    @fakufaku
    Collaborator

    @bmcfee Fixed in v0.2.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions