cmake force internal SHA1 if no ssl
authorAndy Green <andy.green@linaro.org>
Sun, 8 Nov 2015 20:24:46 +0000 (04:24 +0800)
committerAndy Green <andy.green@linaro.org>
Sun, 8 Nov 2015 20:24:46 +0000 (04:24 +0800)
https://github.com/warmcat/libwebsockets/issues/342

You have to explicitly disable LWS_WITHOUT_BUILTIN_SHA1 Cmake option
alomg with SSL to disable SSL

cmake .. -DLWS_WITH_SSL=OFF -DLWS_WITHOUT_BUILTIN_SHA1=OFF

This makes that implicit with disabling SSL.

Signed-off-by: Andy Green <andy.green@linaro.org>
CMakeLists.txt

index fcabdfb..3661c81 100644 (file)
@@ -108,6 +108,10 @@ set(LWS_WOLFSSL_INCLUDE_DIRS CACHE PATH "Path to the wolfSSL include directory")
 set(LWS_LIBEV_LIBRARIES CACHE PATH "Path to the libev library")
 set(LWS_LIBEV_INCLUDE_DIRS CACHE PATH "Path to the libev include directory")
 
+if (NOT LWS_WITH_SSL)
+       set(LWS_WITHOUT_BUILTIN_SHA1 OFF)
+endif()
+
 if (LWS_WITH_SSL AND NOT LWS_USE_WOLFSSL)
        if ("${LWS_OPENSSL_LIBRARIES}" STREQUAL "" OR "${LWS_OPENSSL_INCLUDE_DIRS}" STREQUAL "")
        else()