Skip to content

Mark compatible with cmake 4 #59

Description

@DukeCephalopod

My (arch) system is currently on cmake version 4.0.3-dirty. When attempting to build this package directly from the aur, cmake reports

CMake Error at CMakeLists.txt:2 (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.

As the error suggests, adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the cmake invocation in the aur PKGBUILD works. I don't know enough about cmake's syntax to know exactly what patch to apply to "use the ... syntax" but given that "try configuring anyway" worked completely fine I imagine it should be a straightforward tweak.

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