Skip to content

Build fails with CMake 4.0 #302

Open
@sergiodj

Description

@sergiodj

Hi,

While building your software with CMake 4.0, I get:

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

This is mentioned in CMake 4.0's release notes.

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