Skip to content

Commit aa16561

Browse files
authored
Never use SSL libs during build (#535)
1 parent 0c2bc73 commit aa16561

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cpp/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ set(JSON_Install OFF CACHE INTERNAL "")
4848
set(CLI11_BUILD_TESTS OFF CACHE INTERNAL "")
4949
set(CLI11_BUILD_EXAMPLES OFF CACHE INTERNAL "")
5050

51+
# Disable OpenSSL in cpp-httplib (not needed for localhost HTTP server)
52+
# All HTTPS downloads are handled by libcurl with native SSL backends:
53+
# - Windows: Schannel (native)
54+
# - macOS: SecureTransport (native)
55+
# - Linux: OpenSSL (system library, not bundled)
56+
set(HTTPLIB_USE_OPENSSL_IF_AVAILABLE OFF CACHE BOOL "" FORCE)
57+
set(HTTPLIB_REQUIRE_OPENSSL OFF CACHE BOOL "" FORCE)
58+
5159
# cpp-httplib (MIT License)
5260
FetchContent_Declare(httplib
5361
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git

0 commit comments

Comments
 (0)