Skip to content

Commit 06e7258

Browse files
committed
MOD: Upgrade httplib version
1 parent 0a404a4 commit 06e7258

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,20 @@ else()
137137
FetchContent_MakeAvailable(json)
138138
endif()
139139
# cpp-httplib
140+
set(httplib_version 0.12.2)
140141
if(${PROJECT_NAME_UPPERCASE}_USE_EXTERNAL_HTTPLIB)
141-
find_package(httplib 0.11.2 REQUIRED)
142+
find_package(httplib ${httplib_version} REQUIRED)
142143
else()
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()

0 commit comments

Comments
 (0)