From b640178af44eddeddb5bc1c14912a6e90080f600 Mon Sep 17 00:00:00 2001 From: zhaoshuang Date: Mon, 25 Aug 2025 16:30:28 +0800 Subject: [PATCH] fix cmake version requirement --- fix-cmake-version-requirement.patch | 25 +++++++++++++++++++++++++ onednn.spec | 6 ++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 fix-cmake-version-requirement.patch diff --git a/fix-cmake-version-requirement.patch b/fix-cmake-version-requirement.patch new file mode 100644 index 0000000..4062fa8 --- /dev/null +++ b/fix-cmake-version-requirement.patch @@ -0,0 +1,25 @@ +From 53ef2899f779f9c200f3d0ea5623bf81097be390 Mon Sep 17 00:00:00 2001 +From: zhaoshuang +Date: Mon, 25 Aug 2025 16:23:13 +0800 +Subject: [PATCH] fix cmake version requirement + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b19903f..b2d313e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,7 +14,7 @@ + # limitations under the License. + #=============================================================================== + +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + + if(POLICY CMP0022) + cmake_policy(SET CMP0022 NEW) +-- +2.43.0 + diff --git a/onednn.spec b/onednn.spec index 527329c..06ac34c 100644 --- a/onednn.spec +++ b/onednn.spec @@ -2,14 +2,14 @@ Name: onednn Version: 2.6 -Release: 2 +Release: 3 Summary: Deep Neural Network Library License: ASL 2.0 and BSD and Boost and MIT URL: https://github.com/oneapi-src/oneDNN/ Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz - +Patch0: fix-cmake-version-requirement.patch # This package only work in 64bit arches for now ExclusiveArch: x86_64 aarch64 riscv64 @@ -89,6 +89,8 @@ rm -rf %{buildroot}%{_docdir}/dnnl %{_libdir}/cmake/dnnl/*.cmake %changelog +* Mon Aug 25 2025 kkz - 2.6-3 +- Fix cmakefile min version reqirement. * Wed Feb 8 2023 laokz - 2.6-2 - Add riscv64 to ExclusiveArch. * Sat Aug 6 2022 wisespreading - 2.6-1 -- Gitee