mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3242] [CLOSED] [Engine] build: pin CMP0169 OLD around FetchContent_Populate (CMake 4.4 warns on every configure) #4522
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4522
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3242
Author: @Buddychek
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:fix/cmp0169-fetchcontent-pin📝 Commits (1)
b14ff32build: 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_Populateis deprecated (CMP0169). Strata uses the populate-then-add_subdirectoryform on purpose — it keeps ggml's binary dir at theSTRATA_GGML_DIRone;FetchContent_MakeAvailablewould move it, and itsEXCLUDE_FROM_ALLneeds CMake 3.28, above the project's 3.24 floor.After:
CMP0169is pinned toOLDaround the populate call (guarded for CMake < 3.30), so the warning is gone and the layout stays as it is today. Checked bytools/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 theFetchContent_Populatecall inCMakeLists.txtandsycl/CMakeLists.txt, guarded so CMake < 3.30 (which has no CMP0169) is untouched.Validation
Passed, on 0.2.0-beta main (
e88ee39dis the base; branch commitb14ff320), 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.