[PR #3015] [CLOSED] [Engine] build: pin CMP0169 OLD around FetchContent_Populate (CMake 4.4 warns on every configure) #4400

Closed
opened 2026-11-07 15:35:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3015
Author: @Buddychek
Created: 10/18/2026
Status: ❌ Closed

Base: main ← Head: fix/cmp0169-fetchcontent-pin


📝 Commits (1)

  • cb28dd9 build: pin CMP0169 OLD around FetchContent_Populate - CMake 4.4 warns on every configure (the populate-then-add_subdirectory form keeps ggml's binary dir at the STRATA_GGML_DIR one; FetchContent_MakeAvailable would move it and its EXCLUDE_FROM_ALL needs 3.28, above the 3.24 floor); guarded for CMake < 3.30, checked by tools/test_fetchcontent_policy.py

📊 Changes

3 files changed (+88 additions, -0 deletions)

View changed files

📝 CMakeLists.txt (+11 -0)
📝 sycl/CMakeLists.txt (+7 -0)
➕ tools/test_fetchcontent_policy.py (+70 -0)

📄 Description

Problem and result

CMake 4.4 warns on every configure: FetchContent_Populate is deprecated (CMP0169). Strata uses the populate-then-add_subdirectory form on purpose — it keeps ggml's binary dir at the STRATA_GGML_DIR one; FetchContent_MakeAvailable would move it, and its EXCLUDE_FROM_ALL needs CMake 3.28, above the project's 3.24 floor.

After: CMP0169 is pinned to OLD around the populate call (guarded for CMake < 3.30), so the warning is gone and the layout stays as it is today. Checked by tools/test_fetchcontent_policy.py.

Closed in the 0.2.0-beta tracker reset; rebased on main and re-verified per the reset note.

Approach

cmake_policy(SET CMP0169 OLD) scoped around the FetchContent_Populate call in CMakeLists.txt and sycl/CMakeLists.txt, guarded so CMake < 3.30 (which has no CMP0169) is untouched.

Validation

Passed, on 0.2.0-beta main (e88ee39d is the base; branch commit b14ff320), Windows 11, CMake 4.4.0: python tools/test_fetchcontent_policy.py → 3/3 OK, exit 0.
Not run: a full CUDA/HIP engine build in CI; CMake < 3.30 (the guard path).

Limits

Policy pin only — no build-layout change; the configure output is otherwise byte-identical.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3015 **Author:** [@Buddychek](https://github.com/Buddychek) **Created:** 10/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/cmp0169-fetchcontent-pin` --- ### 📝 Commits (1) - [`cb28dd9`](https://github.com/Niko1221/Strata/commit/cb28dd9d085d519a02d0aa013f4ad84367571e67) build: pin CMP0169 OLD around FetchContent_Populate - CMake 4.4 warns on every configure (the populate-then-add_subdirectory form keeps ggml's binary dir at the STRATA_GGML_DIR one; FetchContent_MakeAvailable would move it and its EXCLUDE_FROM_ALL needs 3.28, above the 3.24 floor); guarded for CMake < 3.30, checked by tools/test_fetchcontent_policy.py ### 📊 Changes **3 files changed** (+88 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+11 -0) 📝 `sycl/CMakeLists.txt` (+7 -0) ➕ `tools/test_fetchcontent_policy.py` (+70 -0) </details> ### 📄 Description ### Problem and result CMake 4.4 warns on every configure: `FetchContent_Populate` is deprecated (CMP0169). Strata uses the populate-then-`add_subdirectory` form on purpose — it keeps ggml's binary dir at the `STRATA_GGML_DIR` one; `FetchContent_MakeAvailable` would move it, and its `EXCLUDE_FROM_ALL` needs CMake 3.28, above the project's 3.24 floor. After: `CMP0169` is pinned to `OLD` around the populate call (guarded for CMake < 3.30), so the warning is gone and the layout stays as it is today. Checked by `tools/test_fetchcontent_policy.py`. ### Related discussion Closed in the 0.2.0-beta tracker reset; rebased on main and re-verified per the reset note. ### Approach `cmake_policy(SET CMP0169 OLD)` scoped around the `FetchContent_Populate` call in `CMakeLists.txt` and `sycl/CMakeLists.txt`, guarded so CMake < 3.30 (which has no CMP0169) is untouched. ### Validation Passed, on 0.2.0-beta main (`e88ee39d` is the base; branch commit `b14ff320`), Windows 11, CMake 4.4.0: `python tools/test_fetchcontent_policy.py` → 3/3 OK, exit 0. Not run: a full CUDA/HIP engine build in CI; CMake < 3.30 (the guard path). ### Limits Policy pin only — no build-layout change; the configure output is otherwise byte-identical. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:35:27 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4400
No description provided.