mozjpeg: add cmakeFlags for CMake >= 3.5 (#450028)

This commit is contained in:
Fabian Affolter
2025-10-08 19:12:16 +00:00
committed by GitHub
+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