File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 71
71
cd build
72
72
73
73
echo "::group::CMake"
74
- cmake .. \
74
+ # CMake 4.0.0 deprecated < 3.5, but some vcpkg packages still use it.
75
+ # Yet, they are fully compatible with 3.5, and so there is no problem
76
+ # forcing them to upgrade.
77
+ CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake .. \
75
78
-DCMAKE_OSX_ARCHITECTURES=${{ inputs.full_arch }} \
76
79
-DVCPKG_TARGET_TRIPLET=${{ inputs.arch }}-osx \
77
80
-DCMAKE_TOOLCHAIN_FILE=${{ runner.temp }}/vcpkg/scripts/buildsystems/vcpkg.cmake \
Original file line number Diff line number Diff line change 66
66
cd build
67
67
68
68
echo "::group::CMake"
69
- cmake .. \
69
+ # CMake 4.0.0 deprecated < 3.5, but some vcpkg packages still use it.
70
+ # Yet, they are fully compatible with 3.5, and so there is no problem
71
+ # forcing them to upgrade.
72
+ CMAKE_POLICY_VERSION_MINIMUM=3.5 VCPKG_ENV_PASSTHROUGH=CMAKE_POLICY_VERSION_MINIMUM cmake .. \
70
73
-GNinja \
71
74
-DVCPKG_TARGET_TRIPLET=${{ inputs.arch }}-windows-static \
72
75
-DCMAKE_TOOLCHAIN_FILE="${{ runner.temp }}\vcpkg\scripts\buildsystems\vcpkg.cmake" \
Original file line number Diff line number Diff line change 87
87
# CMake 4.0.0 deprecated < 3.5, but some vcpkg packages still use it.
88
88
# Yet, they are fully compatible with 3.5, and so there is no problem
89
89
# forcing them to upgrade.
90
- CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake ${GITHUB_WORKSPACE} \
90
+ CMAKE_POLICY_VERSION_MINIMUM=3.5 VCPKG_ENV_PASSTHROUGH=CMAKE_POLICY_VERSION_MINIMUM cmake ${GITHUB_WORKSPACE} \
91
91
-GNinja \
92
92
-DOPTION_TOOLS_ONLY=ON \
93
93
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
You can’t perform that action at this time.
0 commit comments