Fix: [CI] force a CMake minimum version of 3.5 for all dependencies (#13936)
With CMake 4.0.0, any project < 3.5 is no longer supported. Yet, some projects indicate 3.0 or 3.1 (while fully compatible with 3.5+). But CMake doesn't know, so it bails.
This commit is contained in:
5
.github/workflows/release-linux.yml
vendored
5
.github/workflows/release-linux.yml
vendored
@@ -136,7 +136,10 @@ jobs:
|
||||
cd build
|
||||
|
||||
echo "::group::CMake"
|
||||
cmake ${GITHUB_WORKSPACE} \
|
||||
# CMake 4.0.0 deprecated < 3.5, but some vcpkg packages still use it.
|
||||
# Yet, they are fully compatible with 3.5, and so there is no problem
|
||||
# forcing them to upgrade.
|
||||
CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake ${GITHUB_WORKSPACE} \
|
||||
-DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DOPTION_SURVEY_KEY=${{ inputs.survey_key }} \
|
||||
|
||||
Reference in New Issue
Block a user