You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: static curl build + POST streaming transport test (#23)
* cmake: fetch libcurl when requested
Implements FASTMCPP_FETCH_CURL via FetchContent when POST streaming is enabled and curl isn't available.
Also aligns README version/options wording.
* cmake: make fetched curl static + fix POST stream error
- Prefer libcurl_static and avoid requiring a runtime DLL
- Treat CURLE_PARTIAL_FILE as success for SSE-style POST streams
* build(windows): avoid libcurl-d.dll loader errors
Link fetched curl statically, and add a build-time helper to copy the curl DLL next to executables when it exists.
* build: always avoid curl DLL dependency
Remove the post-build DLL copy helper; the FetchContent curl build is kept static so examples/tests don't require libcurl-d.dll.
* cmake: always fetch static curl when requested
When FASTMCPP_ENABLE_POST_STREAMING=ON and FASTMCPP_FETCH_CURL=ON, skip find_package() and build curl via FetchContent as a static library.
Also gates the POST streaming demo test on TARGET CURL::libcurl.
* test(post-stream): add POST streaming transport test
* style: apply clang-format
# Optional: libcurl for POST streaming receive support (modular)
98
98
if(FASTMCPP_ENABLE_POST_STREAMING)
99
-
find_package(CURL)
100
-
if(NOT CURL_FOUND AND FASTMCPP_FETCH_CURL)
101
-
message(STATUS"CURL not found; FASTMCPP_FETCH_CURL requested (skipping auto-fetch in this build). Please provide CURL via your toolchain or package manager.")
99
+
if(FASTMCPP_FETCH_CURL)
100
+
message(STATUS"FASTMCPP_FETCH_CURL=ON: fetching curl via FetchContent (static-only)")
0 commit comments