File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ if(MSVC_VERSION LESS 1600)
340340 # for VS10 - version without support C++11
341341 hunter_default_version(jsoncpp VERSION 0.7.0)
342342else ()
343- hunter_default_version(jsoncpp VERSION 1.8.0 )
343+ hunter_default_version(jsoncpp VERSION 1.9.5-b1 )
344344endif ()
345345
346346hunter_default_version(kNet VERSION 2.7-p1)
Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ include(hunter_cmake_args)
1111
1212# List of versions:
1313
14+ hunter_add_version(
15+ PACKAGE_NAME
16+ jsoncpp
17+ VERSION
18+ "1.9.5-b1"
19+ URL
20+ "https://github.com/julianoes/jsoncpp/archive/refs/tags/1.9.5-b1.tar.gz"
21+ SHA1
22+ 66cc807ea43907409842c1801ab7a43617cf2171
23+ )
24+
1425hunter_add_version(
1526 PACKAGE_NAME
1627 jsoncpp
Original file line number Diff line number Diff line change @@ -15,5 +15,9 @@ add_executable(version main.cpp)
1515if (${HUNTER_jsoncpp_VERSION} VERSION_LESS 1.0.0)
1616 target_link_libraries (version jsoncpp_lib)
1717else ()
18- target_link_libraries (version jsoncpp_lib_static)
18+ if (${HUNTER_jsoncpp_VERSION} VERSION_LESS 1.9.5)
19+ target_link_libraries (version jsoncpp_lib_static)
20+ else ()
21+ target_link_libraries (version JsonCpp::JsonCpp)
22+ endif ()
1923endif ()
You can’t perform that action at this time.
0 commit comments