Commit 0ce964a8 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

QuadProgpp: fix cmake-4 build

Without the change the build on cmake-4 fails as
https://hydra.nixos.org/build/308951858:

    CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.
parent 228819d1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,13 @@ stdenv.mkDerivation {
    cmake
  ];

  postPatch = ''
    # Inline https://github.com/liuq/QuadProgpp/pull/32
    substituteInPlace CMakeLists.txt --replace-fail \
      'cmake_minimum_required(VERSION 3.0)' \
      'cmake_minimum_required(VERSION 3.10)'
  '';

  meta = with lib; {
    description = "C++ library for Quadratic Programming";
    longDescription = ''