summaryrefslogtreecommitdiff
path: root/0001-downgrade-cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-downgrade-cmake.patch')
-rw-r--r--0001-downgrade-cmake.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/0001-downgrade-cmake.patch b/0001-downgrade-cmake.patch
new file mode 100644
index 0000000..bd2ad7d
--- /dev/null
+++ b/0001-downgrade-cmake.patch
@@ -0,0 +1,22 @@
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index 82a454791d..87a048fbd2 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ # Licensed under the MIT License.
+
+ # Minimum CMake required
+-cmake_minimum_required(VERSION 3.26)
++cmake_minimum_required(VERSION 3.24)
+
+ cmake_policy(SET CMP0069 NEW)
+ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
+@@ -14,7 +14,7 @@ cmake_policy(SET CMP0117 NEW)
+ cmake_policy(SET CMP0104 OLD)
+
+ # Enable Hot Reload for MSVC compilers if supported.
+-cmake_policy(SET CMP0141 NEW)
++# cmake_policy(SET CMP0141 NEW)
+
+ # Project
+ project(onnxruntime C CXX ASM)