Require CMake 4.3 #3218
<!-- coderabbit-ai-generated:v1 -->
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- review_stack_entry_start -->
<a href="https://app.coderabbit.ai/change-stack/NVIDIA/raft/pull/3218?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a>
<!-- review_stack_entry_end -->
<!-- recent_review_status_start -->
No actionable comments were generated in the recent review.
<!-- recent_review_status_end -->
<!-- walkthrough_start -->
<details>
<summary><strong>Summary</strong></summary>
<dl>
<dd>
<br>
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Build Requirements
Building from source and installing the Python packages now require CMake 4.3 or newer. The supported version range remains below 4.5.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
The minimum required CMake version changes from 4.0 to 4.3 across CMake checks, shared build dependencies, Conda environments, Python package build requirements, and source-build documentation. Existing upper bounds below 4.5 remain unchanged.
Changes: CMake minimum version
|Layer / File(s)|Summary|
|:---|:---|
|CMake version checks <br> cmake/RAPIDS.cmake, cpp/CMakeLists.txt, python//CMakeLists.txt|CMake configuration now requires version 4.3. The existing fatal-error behavior for versions below the minimum remains.|
|Build requirements and documentation <br> dependencies.yaml, conda/environments/.yaml, conda/recipes//conda_build_config.yaml, python//pyproject.toml, docs/source/build.md|Build requirements now set a 4.3 minimum while retaining the <4.5 upper bound. The source-build documentation states the new minimum.|
<!-- change_assessment_start -->
Estimated code review effort: 2 (Simple) | ~8 minutes
<!-- change_assessment_commit:"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d" -->
<!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} -->
Change: Other
<!-- change_assessment_end -->
Possibly related PRs
Suggested reviewers: bdice, vyasr
</dd>
</dl>
</details>
<!-- walkthrough_end -->
<details>
<summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>89344</code></summary>
<dl>
<dd>
<br>
<!-- final_review_risk_start -->
<!-- final_review_risk_label
Merge Risk: ⚪ Minimal · up to 89344
-->
<!-- final_review_risk_coverage:{"sourceCommitId":"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d","coveredCommitId":"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d","kind":"reviewed"} -->
This raises the minimum CMake version for building from source to 4.3 and keeps all build requirements and docs consistent. Builds on older CMake will now fail at configure time, which is the intended behavior. No merge-blocking risk was found.
<!-- final_review_risk_end -->
</dd>
</dl>
</details>
<details>
<summary><strong>Architecture risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · up to <code>89344</code></summary>
<dl>
<dd>
<br>
<!-- architecture_review_start -->
<!-- architecture_review_label
Architecture Summary
Architecture risk: 🔵 Low · up to 89344
-->
The change affects 6 systems.
Changed systems: conda, python, cmake, cpp, dependencies.yaml, docs
Architecture concerns
No architecture-level concerns identified.
<details>
<summary><strong>Review details</strong></summary>
<dl>
<dd>
<br>
Systems and components
Before / after behavior
<4.5 upper bound is unchanged.>=4.0,<4.5 to >=4.3,<4.5.</dd>
</dl>
</details>
<!-- architecture_review_end -->
</dd>
</dl>
</details>
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary>
<dl>
<dd>
<br>
| Check name | Status | Explanation |
| :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title check | !Passed | The title "Require CMake 4.3" matches the main change. The PR raises the minimum required CMake version from 4.0 to 4.3 across cmake_minimum_required() calls, dependency files, conda environments, rec… |
| Description check | !Passed | The description states the goal of raising the minimum CMake version to 4.3 and lists the affected areas: cmake_minimum_required(), dependencies.yaml, conda environment files, conda recipes, pyproject… |
| 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>
<summary><strong>Full details: Title check</strong></summary>
<dl>
<dd>
<br>
Explanation
The title "Require CMake 4.3" matches the main change. The PR raises the minimum required CMake version from 4.0 to 4.3 across cmake_minimum_required() calls, dependency files, conda environments, recipes, pyproject.toml files, and docs. The title is short, specific, and states the primary change.
</dd>
</dl>
</details>
<details>
<summary><strong>Full details: Description check</strong></summary>
<dl>
<dd>
<br>
Explanation
The description states the goal of raising the minimum CMake version to 4.3 and lists the affected areas: cmake_minimum_required(), dependencies.yaml, conda environment files, conda recipes, pyproject.toml, docs, CI images, and presets. It also lists the dependent project PRs. This matches the changeset.
</dd>
</dl>
</details>
</dd>
</dl>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary><strong>Finishing Touches</strong></summary>
<dl>
<dd>
<br>
<details open>
<summary><strong>Generate unit tests (beta)</strong></summary>
<dl>
<dd>
<br>
</dd>
</dl>
</details>
</dd>
</dl>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- autopilot:start -->
<!-- autopilot:end -->
<!-- recent_review_start -->
<h6>
<details>
<summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary>
<dl>
<dd>
<br>
<!-- review_info_content -->
<details>
<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
<dl>
<dd>
<br>
75ad28af-5fcf-499b-9116-953ccc90ab73</dd>
</dl>
</details>
<details>
<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary>
<dl>
<dd>
<br>
Reviewing files that changed from the base of the PR and between 2eca9a847b0f38ff52aad24e72a7bc5ddbd52201 and 89344b49db1f2aaa72a6c5019e5a2fe2cbda360d.
</dd>
</dl>
</details>
<details>
<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 17</strong></summary>
<dl>
<dd>
<br>
cmake/RAPIDS.cmake
conda/environments/all_cuda-129_arch-aarch64.yaml
conda/environments/all_cuda-129_arch-x86_64.yaml
conda/environments/all_cuda-134_arch-aarch64.yaml
conda/environments/all_cuda-134_arch-x86_64.yaml
conda/recipes/libraft/conda_build_config.yaml
conda/recipes/pylibraft/conda_build_config.yaml
conda/recipes/raft-dask/conda_build_config.yaml
cpp/CMakeLists.txt
dependencies.yaml
docs/source/build.md
python/libraft/CMakeLists.txt
python/libraft/pyproject.toml
python/pylibraft/CMakeLists.txt
python/pylibraft/pyproject.toml
python/raft-dask/CMakeLists.txt
python/raft-dask/pyproject.toml</dd>
</dl>
</details>
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.
</dd>
</dl>
</details>
</h6>
<!-- recent_review_end -->
Approved these changes.
/merge
cryos
robertmaynard
Raise the minimum required CMake version to 4.3.
Before this PR is merged, the PRs for the following projects should already be merged, or at least have passing CI:
Contributes to rapidsai/build-planning#349