Revert "[CI] Fix docker builds failing due to cmake update by setting CMAKE_POLICY_VERSION_MINIMUM (#150220)"

This reverts commit 87549a65c9.

Reverted https://github.com/pytorch/pytorch/pull/150220 on behalf of https://github.com/clee2000 due to doesn't solve the problem since the installed cmake 4 stays on the system, resulting in failed pytorch builds later ([comment](https://github.com/pytorch/pytorch/pull/150220#issuecomment-2762623078))
This commit is contained in:
PyTorch MergeBot 2025-03-28 21:44:03 +00:00
parent 4271ebdbdc
commit 7ac0658757
2 changed files with 1 additions and 5 deletions

View File

@ -37,8 +37,7 @@ install_conda_dependencies() {
install_pip_dependencies() {
pushd executorch
# Remove CMAKE_POLICY_VERSION_MINIMUM when cmake 4.0.0 is more supported
as_jenkins CMAKE_POLICY_VERSION_MINIMUM=3.5 bash install_executorch.sh
as_jenkins bash install_executorch.sh
# A workaround, ExecuTorch has moved to numpy 2.0 which is not compatible with the current
# numba and scipy version used in PyTorch CI

View File

@ -19,9 +19,6 @@ fi
conda_install numpy scipy imageio cmake ninja
# Remove this when cmake 4.0.0 is more supported
export CMAKE_POLICY_VERSION_MINIMUM=3.5
git clone --depth 1 --branch release/16.x --recursive https://github.com/llvm/llvm-project.git
cmake -DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang" \