jsoncpp: Require version 1.4.1 when using system-provided library

We need the `failIfExtra` diagnostic added by that version.
This commit is contained in:
Brad King 2018-12-11 09:55:59 -05:00
parent 4a8898cd6d
commit 1c03c12b1d

View File

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