apfs-fuse: fix cmake 4 compatibility

This commit is contained in:
SkohTV
2025-10-10 13:56:32 -04:00
parent 10ad44f66f
commit 0579b9d146
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
From 523ef46031f0d805a651d95e3b193f73acc824ef Mon Sep 17 00:00:00 2001
From: Skoh <101289702+SkohTV@users.noreply.github.com>
Date: Fri, 10 Oct 2025 13:53:13 -0400
Subject: [PATCH] Increase cmake_minimum_required: 3.0 -> 3.10
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03acf26..84370f0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.0...3.10)
# set(CMAKE_C_COMPILER "clang")
# set(CMAKE_CXX_COMPILER "clang++")

View File

@@ -22,6 +22,12 @@ stdenv.mkDerivation {
fetchSubmodules = true;
};
patches = [
# fix for CMake v4
# https://github.com/sgan81/apfs-fuse/pull/211
./cmake-v4.patch
];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace CMakeLists.txt \
--replace "/usr/local/lib/libosxfuse.dylib" "fuse"