mozjpeg: add cmakeFlags for CMake >= 3.5

This commit is contained in:
Fabian Affolter
2025-10-08 21:01:14 +02:00
parent 59f9c6722b
commit 37bc5002eb
+3
View File
@@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
};
cmakeFlags = [
# Fix the build with CMake 4
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
"-DENABLE_STATIC=NO"
"-DPNG_SUPPORTED=TRUE"
]; # See https://github.com/mozilla/mozjpeg/issues/351
@@ -29,6 +31,7 @@ stdenv.mkDerivation rec {
cmake
pkg-config
];
buildInputs = [
libpng
zlib