Commit 37bc5002 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

mozjpeg: add cmakeFlags for CMake >= 3.5

parent 59f9c672
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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