Commit 7d1cf4a
fix(app,ci): set CMAKE_POLICY_VERSION_MINIMUM=3.5 for fetched deps (#26)
The "Build Desktop App (CMake)" CI job began failing at Configure with:
CMake Error at build/_deps/cjson-src/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
cJSON v1.7.18 (fetched via FetchContent) still declares a pre-3.5
cmake_minimum_required. The GitHub Windows runner upgraded to the CMake that
ships with Visual Studio 2026 (CMake >= 4.0), which removed compatibility with
that old policy version, so configuration aborts before any of our code builds.
Set CMAKE_POLICY_VERSION_MINIMUM=3.5 before FetchContent so the fetched
subprojects adopt a still-supported policy floor. The variable is read by each
subproject's cmake_minimum_required and is silently ignored on CMake < 3.31,
so local builds on older toolchains are unaffected. No functional change.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent fb91c4a commit 7d1cf4a
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
0 commit comments