summaryrefslogtreecommitdiff
path: root/0001-downgrade-cmake-from-3.26-to-3.24.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
commit2e6205e7c427a3e0f79b954360d5309981308ecd (patch)
treec8cd1f1a3e7eee644a8a26f04d8c88012338c096 /0001-downgrade-cmake-from-3.26-to-3.24.patch
parent163fafecf77c42a8ad9cd11cc33d9cd5cb89d71c (diff)
automatic import of onnxruntime
Diffstat (limited to '0001-downgrade-cmake-from-3.26-to-3.24.patch')
-rw-r--r--0001-downgrade-cmake-from-3.26-to-3.24.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0001-downgrade-cmake-from-3.26-to-3.24.patch b/0001-downgrade-cmake-from-3.26-to-3.24.patch
new file mode 100644
index 0000000..f3cdb3f
--- /dev/null
+++ b/0001-downgrade-cmake-from-3.26-to-3.24.patch
@@ -0,0 +1,34 @@
+From 96fd81264df0a901567cb22391663da89f497b5a Mon Sep 17 00:00:00 2001
+From: binsz <274620705z@gmail.com>
+Date: Tue, 30 Jan 2024 11:14:29 +0800
+Subject: [PATCH] downgrade cmake from 3.26 to 3.24
+
+---
+ cmake/CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index 82a4547..87a048f 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)
+--
+2.41.0
+