Skip to content

CMake Error: Compatibility with CMake < 3.5 has been removed from CMake. #79

Description

@caseyjamesdavis

Setting up the build environment with cmake .. generates the following error:

Image

Using cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 (as suggested) seems to work as a short-term solution, but overrides the compatibility check.

The root cause appears to be that CMake 4.0.0 no longer supports features deprecated in CMake 3.5 or earlier.

Assuming that the project doesn't use any deprecated features, the long-term fix appears to be changing:
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) in CMakeLists.txt to:
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

I'd be happy to submit a PR if that helps.

Cheers.

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