Skip to content

F44 Changes: CMake: Use ninja generator by default & CMake 4.0 #5539

@travier

Description

@travier

See: https://fedoraproject.org/wiki/Changes/CMake_ninja_default

Change the default generator used in the %cmake macro from make to ninja. Affected projects are tracked in this copr repo, please check if your packages are failing there.

See: https://fedoraproject.org/wiki/Changes/CMake4.0

Update CMake to version 4.0. This version breaks compatibility with projects that specify cmake_minimum_required with only a lower bound less than 3.5. Affected projects are tracked in this copr repo, please check if your packages are failing there.


The first change was made for dnf4 (https://src.fedoraproject.org/rpms/dnf/c/e6331a6663804a65258d8359476712aaeac86ef4?branch=rawhide) already.

Not completely sure if we need to do something for rpm-ostree as rpm-ostree builds its own copy of libdnf directly using the cmake crate: https://github.com/coreos/rpm-ostree/blob/main/rust/libdnf-sys/build.rs

Second change would similarly be fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions