cmake: raise the bundled-dependency policy floor to 3.10 #975

Manually merged
github merged 1 commit from gh-pr/975/head into gh-pr/975/base 2026-11-26 09:38:55 +00:00
Owner

@⁠Nawid3333 on GitHub · 2026-10-02 13:52 UTC · original
Nawid3333:cmake/deps-policy-floor → main · +1 −1 · 1 files · 1 commits · merged 2026-10-03 13:24 UTC

With CMake 4.x every configure prints two deprecation warnings from the bundled dependencies (zydis-src/CMakeLists.txt:1 and its dependencies/zycore/CMakeLists.txt:5): both declare cmake_minimum_required(VERSION 3.9), and compatibility with CMake < 3.10 is deprecated. The top-level CMakeLists pins CMAKE_POLICY_VERSION_MINIMUM to 3.5 for the bundled projects, which does not lift them past that threshold; raising the floor to 3.10 does, without touching the bundled sources.

One line, configure-time only, same effect on Windows, Linux and macOS. Existing build directories keep the cached 3.5 until reconfigured with -U CMAKE_POLICY_VERSION_MINIMUM or a fresh cache.

Testing (Windows 11, clang-cl 19.1.5, CMake 4.4.3, Ninja):

  • Fresh Release configure with this change: 0 deprecation warnings. Control configure with the old 3.5 floor: the 2 warnings above.
  • Re-verified against current main (684330c, 2026-10-02): applies cleanly, fresh configure succeeds with 0 warnings.
  • virtual_memory_allocation_tests builds and links zydis/xbyak; ctest -R "^guest_red_zone_patcher$" passes.

AI use disclosure (per the README's AI policy): an AI assistant prepared the change and ran the verification configures; the diff and the test runs were reviewed and repeated locally before submission.

🤖 Generated with Claude Code

**@⁠Nawid3333** on GitHub · 2026-10-02 13:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/975) `Nawid3333:cmake/deps-policy-floor` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-10-03 13:24 UTC With CMake 4.x every configure prints two deprecation warnings from the bundled dependencies (`zydis-src/CMakeLists.txt:1` and its `dependencies/zycore/CMakeLists.txt:5`): both declare `cmake_minimum_required(VERSION 3.9)`, and compatibility with CMake < 3.10 is deprecated. The top-level CMakeLists pins `CMAKE_POLICY_VERSION_MINIMUM` to 3.5 for the bundled projects, which does not lift them past that threshold; raising the floor to 3.10 does, without touching the bundled sources. One line, configure-time only, same effect on Windows, Linux and macOS. Existing build directories keep the cached 3.5 until reconfigured with `-U CMAKE_POLICY_VERSION_MINIMUM` or a fresh cache. **Testing** (Windows 11, clang-cl 19.1.5, CMake 4.4.3, Ninja): - Fresh Release configure with this change: 0 deprecation warnings. Control configure with the old 3.5 floor: the 2 warnings above. - Re-verified against current `main` (684330c, 2026-10-02): applies cleanly, fresh configure succeeds with 0 warnings. - `virtual_memory_allocation_tests` builds and links zydis/xbyak; `ctest -R "^guest_red_zone_patcher$"` passes. **AI use disclosure** (per the README's AI policy): an AI assistant prepared the change and ran the verification configures; the diff and the test runs were reviewed and repeated locally before submission. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CMake 4 warns "Compatibility with CMake < 3.10 will be removed" for every
fetched project that declares an older minimum. zydis and its bundled
zycore both declare cmake_minimum_required(VERSION 3.9), so each configure
prints two deprecation warnings. The existing floor of 3.5 does not lift
them past the threshold; 3.10 does.

Existing build directories keep the cached 3.5 until reconfigured with
-U CMAKE_POLICY_VERSION_MINIMUM or a fresh cache.

Tested on Windows 11, clang-cl 19.1.5, CMake 4.4.3: configure prints 0
deprecation warnings (2 with the old floor); virtual_memory_allocation_tests
builds and links zydis/xbyak; ctest guest_red_zone_patcher passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:38:53 +00:00
github manually merged commit c1d221728c into gh-pr/975/base 2026-11-26 09:38:55 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-02 13:59 UTC · original

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 57be4d31-b122-4ded-85c3-0982a5ad7667

📥 Commits

Reviewing files that changed from the base of the PR and between e317465d8a and c1d221728c.

📒 Files selected for processing (1)
  • CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

When CMake is 4.0 or newer, the cached CMAKE_POLICY_VERSION_MINIMUM value changes from 3.5 to 3.10. The condition and cache behavior remain unchanged.

Suggested reviewers: cosmo

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to c1d22

The policy-floor update is bounded to CMake 4.0 and no merge-blocking issue is identified; proceed with normal configure and build checks.

Architecture Summary

Architecture risk: 🔵 Low · up to c1d22

The change affects 1 system.

Changed systems: CMakeLists.txt

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CMakeLists.txt (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CMakeLists.txt: The CMake 4.0-or-newer policy minimum changes from 3.5 to 3.10; it remains a cached string with the same description.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: raising the CMake policy floor for bundled dependencies to version 3.10.
Description check ✅ Passed The description directly explains the policy-floor change, its purpose, cache behavior, and reported verification results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-02 13:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/975#issuecomment-5954057787) <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/975?cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `57be4d31-b122-4ded-85c3-0982a5ad7667` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between e317465d8a773b33482ad367ad2f856154c8bc6d and c1d221728cbbd4022da3d282fcf357247c73c779. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `CMakeLists.txt` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough When CMake is 4.0 or newer, the cached `CMAKE_POLICY_VERSION_MINIMUM` value changes from `3.5` to `3.10`. The condition and cache behavior remain unchanged. **Suggested reviewers:** `cosmo` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"c1d221728cbbd4022da3d282fcf357247c73c779" --> **Change:** Other <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `c1d22` <!-- final_review_risk_coverage:{"sourceCommitId":"c1d221728cbbd4022da3d282fcf357247c73c779","coveredCommitId":"c1d221728cbbd4022da3d282fcf357247c73c779","kind":"reviewed"} --> The policy-floor update is bounded to CMake 4.0 and no merge-blocking issue is identified; proceed with normal configure and build checks. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Architecture Summary **Architecture risk:** _🔵 Low_ · up to `c1d22` The change affects 1 system. **Changed systems:** `CMakeLists.txt` **Architecture concerns** No architecture-level concerns identified. <details> <summary>Review details</summary> **Systems and components** - _observed_ — CMakeLists.txt (service) was modified; 1 changed file maps to changed impact. **Before / after behavior** - _observed_ — Modified behavior in CMakeLists.txt: The CMake 4.0-or-newer policy minimum changes from `3.5` to `3.10`; it remains a cached string with the same description. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly describes the main change: raising the CMake policy floor for bundled dependencies to version 3.10. | | Description check | ✅ Passed | The description directly explains the policy-floor change, its purpose, cache behavior, and reported verification results. | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts > Autopilot is currently an internal CodeRabbit preview. <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=975)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.