diff --git a/CMakeLists.txt b/CMakeLists.txt index 65b805c33c..617c7516a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1685,7 +1685,7 @@ if(NOT CURL_DISABLE_INSTALL) _add_if("RTMP" USE_LIBRTMP) _add_if("MQTT" NOT CURL_DISABLE_MQTT) _add_if("WS" USE_WEBSOCKETS) - _add_if("WSS" USE_WEBSOCKETS) + _add_if("WSS" USE_WEBSOCKETS AND SSL_ENABLED) if(_items) list(SORT _items) endif()