Unverified Commit f02eff4e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

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

parents bf4a0ce5 37bc5002
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