File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -137,19 +137,20 @@ else()
137137 FetchContent_MakeAvailable(json)
138138endif ()
139139# cpp-httplib
140+ set (httplib_version 0.12.2)
140141if (${PROJECT_NAME_UPPERCASE} _USE_EXTERNAL_HTTPLIB)
141- find_package (httplib 0.11.2 REQUIRED)
142+ find_package (httplib ${httplib_version} REQUIRED)
142143else ()
143144 if (CMAKE_VERSION VERSION_LESS 3.24)
144145 FetchContent_Declare(
145146 httplib
146- URL https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.11.2 .tar.gz
147+ URL https://github.com/yhirose/cpp-httplib/archive/refs/tags/v ${httplib_version} .tar.gz
147148 )
148149 else ()
149150 # DOWNLOAD_EXTRACT_TIMESTAMP added in 3.24
150151 FetchContent_Declare(
151152 httplib
152- URL https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.11.2 .tar.gz
153+ URL https://github.com/yhirose/cpp-httplib/archive/refs/tags/v ${httplib_version} .tar.gz
153154 DOWNLOAD_EXTRACT_TIMESTAMP TRUE
154155 )
155156 endif ()
You can’t perform that action at this time.
0 commit comments