mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
jsoncpp: Require version 1.6.0 when using system-provided library
We need the `ValueIterator::name()` method.
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user