Skip to content

Commit 272851e

Browse files
committed
grpc-tools: Fix Mac build by allowing lower CMake versions
1 parent 4267749 commit 272851e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/grpc-tools/build_binaries.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ build() {
3636
rm -f "$protobuf_base/CMakeCache.txt"
3737
rm -rf "$protobuf_base/CMakeFiles"
3838

39-
cmake -DCMAKE_TOOLCHAIN_FILE=linux.toolchain.cmake $cmake_flag . && cmake --build . --target clean && cmake --build . -- -j 12
39+
# CMAKE_POLICY_VERSION_MINIMUM option is needed until the protobuf dependency is updated
40+
cmake -DCMAKE_TOOLCHAIN_FILE=linux.toolchain.cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 $cmake_flag . && cmake --build . --target clean && cmake --build . -- -j 12
4041

4142
mkdir -p "$base/build/bin"
4243

0 commit comments

Comments
 (0)