sci-ml/NNPACK: cmake >= 3.5

Closes: https://bugs.gentoo.org/957396
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-07-09 22:50:29 +02:00
parent 69d1225e48
commit 2a78308e55
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 12 additions and 1 deletions

View File

@ -40,7 +40,10 @@ BDEPEND="
test? ( dev-cpp/gtest )
"
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-cmake.patch
)
src_prepare() {
sed -i \

View File

@ -0,0 +1,8 @@
--- a/CMakeLists.txt 2025-07-09 22:47:20.927544030 +0200
+++ b/CMakeLists.txt 2025-07-09 22:47:30.686441471 +0200
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
INCLUDE(GNUInstallDirs)
INCLUDE(CheckCSourceCompiles)