Commit db7acb3
committed
ci: Fix shell.nix compatibility with CMake 4.0
CMake 4.0 dropped support for older policies, so versions of Cap'n Proto <=
v1.1.0 (before capnproto/capnproto#2272) require an
additional option to build with CMake 4.0. Without this change, there are
errors like:
> CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> Compatibility with CMake < 3.5 has been removed from CMake.
>
> Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> to tell CMake that the project requires at least <min> but has been updated
> to work with policies introduced by <max> or earlier.
>
> Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
This change fixes the problem by specifying -DCMAKE_POLICY_VERSION_MINIMUM=3.5
when needed.1 parent 91a7759 commit db7acb3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments