Unverified Commit c35d1212 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

libjson-rpc-cpp: fix build with cmake4 (#454311)

parents 9879ec1b 6e46b015
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,6 +50,10 @@ stdenv.mkDerivation rec {
    done

    sed -i -re 's#MATCHES "jsoncpp"#MATCHES ".*/jsoncpp/json$"#g' cmake/FindJsoncpp.cmake

    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)" \
      --replace-fail "cmake_policy(SET CMP0042 OLD)" ""
  '';

  preConfigure = ''