Skip to content

Unable to install on cmake 4.0 #28

@bmcfee

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.

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