Repository navigation
chore(ci): cmake 4 - #807
Conversation
📝 WalkthroughWalkthroughThis PR reformats user-defined literal operator declarations to remove spaces between ChangesUser-Defined Literal Operator Formatting
CMake Version Management
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
No description provided. |
b5d3303 to
0fa06d2
Compare
0fa06d2 to
92c1725
Compare
9c79a8c to
82bc400
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/server/CMakeLists.txt`:
- Around line 12-14: The comment above cmake_minimum_required(VERSION 3.19
FATAL_ERROR) is misleading about vcpkg; update or remove it: either delete the
"to match vcpkg toolchain requirements" clause and state the real rationale for
requiring 3.19, or reword to clarify that this project intentionally requires a
CMake version (3.19) higher than vcpkg's minimum (3.7.2); ensure the comment
directly references the cmake_minimum_required line so future readers understand
why 3.19 is chosen.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 4d5ab021-a22e-4fe5-be05-579eb97b830e
📒 Files selected for processing (7)
packages/server/CMakeLists.txtpackages/server/engine-core/apLib/file/pathLiterals.hpppackages/server/engine-core/apLib/json/toJson.hpppackages/server/engine-core/apLib/literals.hpppackages/server/engine-core/apLib/memory/literals.hpppackages/server/engine-core/apLib/string/literals.hppscripts/compiler-unix.sh
82bc400 to
9c9fbb5
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/compiler-unix.sh`:
- Around line 224-239: The check_linux_cmake function currently enqueues a plain
"sudo apt install -y cmake" when the detected CMake (CMAKE_VERSION) is <3.19
which on Ubuntu 20.04 (focal) will install only 3.16; update check_linux_cmake
to detect focal/Ubuntu-20.04 (or more generally when apt CMake <3.19) and
instead add commands to configure Kitware's APT repository (add the Kitware apt
repository, add the repository key, run apt update) before installing cmake via
COMMANDS; alternatively, if you choose not to support focal, remove focal from
supported distributions list or append a clear notice to the script
output/documentation that Ubuntu 20.04 is unsupported—make the change near the
check_linux_cmake function and the use of COMMANDS/CMAKE_VERSION so the queued
commands will actually install CMake 3.19+.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: a75b075a-73c9-47ae-b69b-20153a1c5021
📒 Files selected for processing (6)
packages/server/engine-core/apLib/file/pathLiterals.hpppackages/server/engine-core/apLib/json/toJson.hpppackages/server/engine-core/apLib/literals.hpppackages/server/engine-core/apLib/memory/literals.hpppackages/server/engine-core/apLib/string/literals.hppscripts/compiler-unix.sh
CMake 4
Removes the custom CMake tarball install in favor of standard package managers, and lifts the artificial CMake 4 version ceiling.
Changes
scripts/compiler-unix.shbrew install/upgrade cmakeandapt install cmake.wgetprerequisite check on Linux (no longer needed).packages/server/engine-core/apLib/**/*.hppPlatform status
brew install cmakeapt install cmakeVC.CMake.Project(unchanged)Linux and Windows will continue using CMake 3.x until their respective package sources ship a 4.x release; the build is confirmed compatible on macOS with CMake 4.
Summary by CodeRabbit
Release Notes
Style
Chores