Skip to content

pkg: Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake flags [backport 2025.10]#21851

Merged
crasbe merged 1 commit intoRIOT-OS:2025.10-branchfrom
maribu:backport/2025.10/pkg/cmake/fix-compilation-on-cmake-4.1.2
Nov 6, 2025
Merged

pkg: Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake flags [backport 2025.10]#21851
crasbe merged 1 commit intoRIOT-OS:2025.10-branchfrom
maribu:backport/2025.10/pkg/cmake/fix-compilation-on-cmake-4.1.2

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Nov 6, 2025

Backport of #21839

Contribution description

This disable policy enforcement of newer cmake 4.1.2 on older cmake projects. The flags can be removed once the upstream projects are compatible with newer versions of cmake.

Testing procedure

  • Green CI
  • Compilation with cmake 4.1.2 (e.g. Alpine Edge) no longer fails for the following apps
    • examples/lang_support/community/javascript
    • tests/pkg/nimble_autoconn_ccnl
    • tests/pkg/cryptoauthlib_internal-tests
    • tests/pkg/cryptoauthlib_compare_sha256
    • examples/networking/misc/openthread
    • examples/networking/misc/ccn-lite-relay

Issues/PRs references

None

This disable policy enforcement of newer cmake 4.1.2 on older cmake
projects. The flags can be removed once the upstream projects are
compatible with newer versions of cmake.

Co-authored-by: crasbe <[email protected]>
(cherry picked from commit 5305a12)
@maribu maribu requested a review from jia200x as a code owner November 6, 2025 09:25
@maribu maribu added Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Nov 6, 2025
@maribu maribu enabled auto-merge November 6, 2025 09:35
@riot-ci
Copy link
Copy Markdown

riot-ci commented Nov 6, 2025

Murdock results

✔️ PASSED

06bc7e3 pkg: Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake flags

Success Failures Total Runtime
10557 0 10559 11m:21s

Artifacts

@maribu maribu added this pull request to the merge queue Nov 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 6, 2025
@crasbe crasbe added this pull request to the merge queue Nov 6, 2025
@crasbe crasbe removed this pull request from the merge queue due to a manual request Nov 6, 2025
@crasbe crasbe added this pull request to the merge queue Nov 6, 2025
Merged via the queue into RIOT-OS:2025.10-branch with commit 044fe84 Nov 6, 2025
31 checks passed
@benpicco benpicco added this to the Release 2025.10 milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants