File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -119,18 +119,19 @@ verbose_message("Applied compiler warnings.\n")
119119include (FetchContent)
120120# JSON
121121if (${PROJECT_NAME_UPPERCASE} _USE_EXTERNAL_JSON)
122- find_package (nlohmann_json 3.11.2 REQUIRED)
122+ find_package (nlohmann_json REQUIRED)
123123else ()
124+ set (json_version 3.11.2)
124125 if (CMAKE_VERSION VERSION_LESS 3.24)
125126 FetchContent_Declare(
126127 json
127- URL https://github.com/nlohmann/json/releases/download/v3.11.2 /json.tar.xz
128+ URL https://github.com/nlohmann/json/releases/download/v ${json_version} /json.tar.xz
128129 )
129130 else ()
130131 # DOWNLOAD_EXTRACT_TIMESTAMP added in 3.24
131132 FetchContent_Declare(
132133 json
133- URL https://github.com/nlohmann/json/releases/download/v3.11.2 /json.tar.xz
134+ URL https://github.com/nlohmann/json/releases/download/v ${json_version} /json.tar.xz
134135 DOWNLOAD_EXTRACT_TIMESTAMP TRUE
135136 )
136137 endif ()
@@ -139,10 +140,10 @@ else()
139140 add_system_include_property(nlohmann_json)
140141endif ()
141142# cpp-httplib
142- set (httplib_version 0.11.4)
143143if (${PROJECT_NAME_UPPERCASE} _USE_EXTERNAL_HTTPLIB)
144- find_package (httplib ${httplib_version} REQUIRED)
144+ find_package (httplib REQUIRED)
145145else ()
146+ set (httplib_version 0.13.1)
146147 if (CMAKE_VERSION VERSION_LESS 3.24)
147148 FetchContent_Declare(
148149 httplib
You can’t perform that action at this time.
0 commit comments