dreamchess: fix build with cmake 4 (#451402)

This commit is contained in:
Yohann Boniface
2025-10-13 08:18:57 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a007f60..a993999 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.2)
+cmake_minimum_required(VERSION 3.10)
project(DreamChess VERSION 0.3.0)
set(DREAMCHESS_RELEASE TRUE)

View File

@@ -30,6 +30,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-qus/RjwdAl9SuDXfLVKTPImqrvPF3xSDVlbXYLM3JNE=";
};
patches = [
### Fix cmake minimum version
./0000-fix-cmake-min.patch
];
buildInputs = [
SDL2
SDL2_image