pslib: fix build

This commit is contained in:
Weijia Wang
2025-10-25 20:45:21 +02:00
parent 4d5fc6ebf2
commit e4e0b934c7
2 changed files with 22 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58a5b45..b41e6a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 3.10)
+
PROJECT(pslib C)
option(ENABLE_BMP "Build with BMP support" ON)
@@ -73,7 +75,6 @@ INCLUDE(CheckFunctionExists)
INCLUDE(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
-SUBDIRS( src )
SET(SOURCES
src/pslib.c
src/ps_memory.c
+4 -4
View File
@@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-gaWNvBLuUUy0o+HWCOyG6KmzxDrYCY6PV3WbA/jjH64=";
};
patches = [
./cmake4.patch
];
nativeBuildInputs = [
cmake
pkg-config
@@ -33,10 +37,6 @@ stdenv.mkDerivation rec {
libtiff
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
doCheck = true;
outputs = [