Skip to content

Commit 9639206

Browse files
committed
Unbreak CI job failures caused by cmake upgrade
Summary: CMake is upgraded to 4.0.0 and it's imcompatible with `cmake_minimum_required(VERSION 3.0.2)` from `third-party/gflags/CMakeLists.txt:73` Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 8b948e8 commit 9639206

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ def run(self):
703703
# like `TorchConfig.cmake` that are provided by pip packages.
704704
f"-DCMAKE_PREFIX_PATH={cmake_prefix_path}",
705705
f"-DCMAKE_BUILD_TYPE={cfg}",
706+
# A temporary flag for overriding exception caused by CMake 4.0.0+
707+
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
706708
# Enable logging even when in release mode. We are building for
707709
# desktop, where saving a few kB is less important than showing
708710
# useful error information to users.

0 commit comments

Comments
 (0)