Fix MacOS CI build (#2522)

As of https://github.com/actions/runner-images/issues/12934, the Mac runners use CMake 4.0, which drops compatibility with CMake < 3.5, but the gRPC library version we use is marked as having CMake 3.1 as its minimum version.

Work around this by using `-DCMAKE_POLICY_VERSION_MINIMUM=3.5`.
This commit is contained in:
InfinityWei 2025-10-09 13:09:07 +08:00 committed by GitHub
parent 30a8f963f7
commit 0ed1e6bc60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,6 +171,7 @@ jobs:
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
"-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
# BoringSSL doesn't support universal binaries when building with ASM.
grpc_cmake: >-
"-DOPENSSL_NO_ASM=ON"