From 1cfe874904b840947691c20c8dadc4fd4c6c4caa Mon Sep 17 00:00:00 2001 From: an-tao <20741618@qq.com> Date: Tue, 26 Jun 2018 21:18:32 +0800 Subject: [PATCH] modify the version requirements of libjsoncpp --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e9ae6d6..ac29d484 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ stop() endif() EXEC_PROGRAM(cat ARGS "${JSONCPP_INCLUDE_DIRS}/json/version.h |grep JSONCPP_VERSION_STRING|sed s'/.*define/define/'|awk '{printf $3}'|sed s'/\"//g'" OUTPUT_VARIABLE jsoncpp_ver) message(STATUS "jsoncpp verson:" ${jsoncpp_ver}) -if(jsoncpp_ver LESS 1.8) +if(jsoncpp_ver LESS 1.7) MESSAGE(STATUS "jsoncpp lib is too old,please get new version from https://github.com/open-source-parsers/jsoncpp") stop() endif()