summaryrefslogtreecommitdiff
path: root/0001-downgrade-cmake.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-15 01:44:51 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-15 01:44:51 +0000
commit7993554df0b339b282e99a6b02596e63637c44df (patch)
tree614553ac99434b1ab3f161c57eb71aefeda9b4fa /0001-downgrade-cmake.patch
parent69fb29f4d56164797f0f1ce9368f9466d9124c02 (diff)
automatic import of onnxruntime
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)