Skip to content

Incompatible with cmake 4+ #1348

@Destroy666x

Description

@Destroy666x

Background

I did some mass Choco update of apps not too long ago, cmake got bumped to 4.0.1. I tried building this now with that version to get new very useful JSON features into the build I have, but I noticed it's not supported at all. I see it's e.g. because of outdated dependencies:

CMake Error at deps/json/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Solution

Do some updates (and maybe other changes?) to support cmake 4+.

Alternatives

You could note that lower versions of cmake are needed to build as I assume this won't be done too quickly, as upgrading some libs may require changes or not even be possible at this moment.

Anything else we should know?

No response

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