]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: keep websockets disabled if HTTP is disabled
authorViktor Szakats <commit@vsz.me>
Sat, 19 Jul 2025 21:46:01 +0000 (23:46 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 23 Jul 2025 17:50:16 +0000 (19:50 +0200)
Syncing with autotools, and fixing the `Protocols:` verifier test.

Cherry-picked from #17988

CMakeLists.txt

index 7f2717f4263a1efa377d0b2007904f2063e3692e..d2bfd2f6f8373110c96835169a34bf5501cf5aee 100644 (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