- disable RTSP, ALTSVC, HSTS when HTTP is disabled.
(`./configure` warning deemed unnecessary and not replicated with
cmake.)
- disable HSTS when there is no TLS backend.
Tested via #14744
Closes #14745
option(CURL_DISABLE_VERBOSE_STRINGS "Disable verbose strings" OFF)
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
+if(CURL_DISABLE_HTTP)
+ set(CURL_DISABLE_RTSP ON)
+ set(CURL_DISABLE_ALTSVC ON)
+ set(CURL_DISABLE_HSTS ON)
+endif()
+
# Corresponds to HTTP_ONLY in lib/curl_setup.h
option(HTTP_ONLY "Disable all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
mark_as_advanced(HTTP_ONLY)
)
if(_enabled_ssl_options_count GREATER 1)
set(CURL_WITH_MULTI_SSL ON)
+elseif(_enabled_ssl_options_count EQUAL 0)
+ set(CURL_DISABLE_HSTS ON)
endif()
if(CURL_USE_SCHANNEL)