From f99210b49c05c913f5e7bc2545133e5f5a685c43 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 19 Jul 2025 23:46:01 +0200 Subject: [PATCH] cmake: keep websockets disabled if HTTP is disabled Syncing with autotools, and fixing the `Protocols:` verifier test. Cherry-picked from #17988 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f2717f426..d2bfd2f6f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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