Skip to content

Commit 399a255

Browse files
authored
Pin cmake version < 4.0.0 (#9732)
### Summary So that we can still build third-party projects. ### Test plan CI
1 parent 8b948e8 commit 399a255

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/arm/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function setup_tosa_reference_model() {
160160
# reference_model flatbuffers version clashes with Vela.
161161
# go with Vela's since it newer.
162162
# Vela's flatbuffer requirement is expected to loosen, then remove this. MLETORCH-565
163-
pip install tosa-tools@git+${tosa_reference_model_url}@${tosa_reference_model_rev} --no-dependencies flatbuffers
163+
CMAKE_POLICY_VERSION_MINIMUM=3.5 pip install tosa-tools@git+${tosa_reference_model_url}@${tosa_reference_model_rev} --no-dependencies flatbuffers
164164

165165
}
166166

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"cmake", # For building binary targets in the wheel.
3+
"cmake<4.0.0", # For building binary targets in the wheel. 4.0.0 breaks third-party CMake build so temporarily pin the version.
44
"pip>=23", # For building the pip package.
55
"pyyaml", # Imported by the kernel codegen tools.
66
"setuptools>=63", # For building the pip package contents.

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake>=3.19 # For building binary targets in the wheel.
1+
cmake>=3.19, <4.0.0 # For building binary targets in the wheel.
22
pip>=23 # For building the pip package.
33
pyyaml # Imported by the kernel codegen tools.
44
setuptools>=63 # For building the pip package contents.

0 commit comments

Comments
 (0)