diff --git a/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch b/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch new file mode 100644 index 0000000000000..2d0041dad8f67 --- /dev/null +++ b/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2025-04-08 22:04:35.298750813 +0200 ++++ b/CMakeLists.txt 2025-04-08 22:04:47.430599644 +0200 +@@ -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) diff --git a/sci-ml/oneDNN/oneDNN-3.6.2.ebuild b/sci-ml/oneDNN/oneDNN-3.6.2.ebuild index a76d3055d2253..c823aad107e77 100644 --- a/sci-ml/oneDNN/oneDNN-3.6.2.ebuild +++ b/sci-ml/oneDNN/oneDNN-3.6.2.ebuild @@ -39,6 +39,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp }