File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,24 @@ else()
65
65
endif ()
66
66
endif ()
67
67
68
+ set (JSON_VERSION
69
+ 3.11.3
70
+ CACHE STRING "nlohmann_json version" )
71
+ set (JSON_URL https://github.com/nlohmann/json/releases/download/v${JSON_VERSION}/json.tar.xz )
72
+ set (JSON_SystemInclude
73
+ ON
74
+ CACHE INTERNAL "Treat the library headers like system headers" )
75
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24 )
76
+ FetchContent_Declare (nlohmann_json URL ${JSON_URL} FIND_PACKAGE_ARGS ${JSON_VERSION} )
77
+ list (APPEND FETCH_PACKAGES nlohmann_json )
78
+ else ()
79
+ find_package (nlohmann_json ${JSON_VERSION} QUIET )
80
+ if (NOT nlohmann_json_FOUND )
81
+ FetchContent_Declare (nlohmann_json URL ${JSON_URL} )
82
+ list (APPEND FETCH_PACKAGES nlohmann_json )
83
+ endif ()
84
+ endif ()
85
+
68
86
set (PLOG_VERSION
69
87
1.1.10
70
88
CACHE STRING "Plog version" )
You can’t perform that action at this time.
0 commit comments