jsoncpp: Require version 1.6.0 when using system-provided library

We need the `ValueIterator::name()` method.
This commit is contained in:
Brad King 2022-08-10 15:57:11 -04:00
parent 68d3ca7008
commit d3c1b8a491

View File

@ -648,7 +648,7 @@ macro (CMAKE_BUILD_UTILITIES)
#---------------------------------------------------------------------
# Build jsoncpp library.
if(CMAKE_USE_SYSTEM_JSONCPP)
find_package(JsonCpp 1.4.1)
find_package(JsonCpp 1.6.0)
if(NOT JsonCpp_FOUND)
message(FATAL_ERROR
"CMAKE_USE_SYSTEM_JSONCPP is ON but a JsonCpp is not found!")