diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a3a44766..9dd29b06 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -67,7 +67,7 @@ if(OpenSSL_FOUND) add_compile_definitions(HAS_OPENSSL) list(APPEND CLIENT_LIBRARIES OpenSSL::Crypto OpenSSL::SSL) else() - message(STATUS "OpenSSL not found, building without wss support") + message(NOTICE "OpenSSL not found, building without SSL support") endif() if(ANDROID) diff --git a/client/client_connection.hpp b/client/client_connection.hpp index 4e603f75..33a3376a 100644 --- a/client/client_connection.hpp +++ b/client/client_connection.hpp @@ -31,7 +31,9 @@ #include #include #include +#ifdef HAS_OPENSSL #include +#endif #include // standard headers @@ -46,9 +48,9 @@ namespace beast = boost::beast; // from namespace websocket = beast::websocket; // from using tcp_socket = boost::asio::ip::tcp::socket; -using ssl_socket = boost::asio::ssl::stream; using tcp_websocket = websocket::stream; #ifdef HAS_OPENSSL +using ssl_socket = boost::asio::ssl::stream; using ssl_websocket = websocket::stream; #endif diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index d8c18232..330b4da3 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -5,8 +5,6 @@ if(NOT WIN32 AND NOT ANDROID) list(APPEND SOURCES daemon.cpp) endif() -include_directories(${OPENSSL_INCLUDE_DIR}) - if(SOXR_FOUND) include_directories(${SOXR_INCLUDE_DIRS}) endif(SOXR_FOUND)