Fix src/CMakeLists.txt

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-03-24 11:08:31 +08:00
parent f3a62126b3
commit 350e520dfe
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ option(UHTTPD_USE_OPENSSL "Force select OpenSSL" OFF)
option(UHTTPD_USE_WOLFSSL "Force select WolfSSL(CyaSSL)" OFF) option(UHTTPD_USE_WOLFSSL "Force select WolfSSL(CyaSSL)" OFF)
option(UHTTPD_USE_MBEDTLS "Force select MbedTLS(PolarSSL)" OFF) option(UHTTPD_USE_MBEDTLS "Force select MbedTLS(PolarSSL)" OFF)
set(SSL_NAME OFF) set(SSL_NAME "")
set(UHTTPD_HAVE_OPENSSL_CONFIG 0) set(UHTTPD_HAVE_OPENSSL_CONFIG 0)
set(UHTTPD_HAVE_WOLFSSL_CONFIG 0) set(UHTTPD_HAVE_WOLFSSL_CONFIG 0)
set(UHTTPD_HAVE_MBEDTLS_CONFIG 0) set(UHTTPD_HAVE_MBEDTLS_CONFIG 0)
@ -81,7 +81,6 @@ else()
list(APPEND EXTRA_LIBS ${SSL_LIB}) list(APPEND EXTRA_LIBS ${SSL_LIB})
message(STATUS "Select ${SSL_NAME} as the SSL backend") message(STATUS "Select ${SSL_NAME} as the SSL backend")
else() else()
set(SSL_NAME OFF)
set(UHTTPD_SSL_SUPPORT_CONFIG 0) set(UHTTPD_SSL_SUPPORT_CONFIG 0)
endif() endif()
endif() endif()