cmake: keep websockets disabled if HTTP is disabled

Syncing with autotools, and fixing the `Protocols:` verifier test.

Cherry-picked from #17988
This commit is contained in:
Viktor Szakats 2025-07-19 23:46:01 +02:00
parent 548d8a8421
commit f99210b49c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -480,6 +480,7 @@ if(CURL_DISABLE_HTTP)
set(CURL_DISABLE_RTSP ON)
set(CURL_DISABLE_ALTSVC ON)
set(CURL_DISABLE_HSTS ON)
set(CURL_DISABLE_WEBSOCKETS ON)
endif()
# Corresponds to HTTP_ONLY in lib/curl_setup.h