libjson-rpc-cpp: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-21 16:25:40 -03:00
parent 0b3f6f538f
commit 6e46b015a4
@@ -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 = ''