From 7ec08905b92cdf54c09d4128f21b9a17a1373b83 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 16 Jan 2021 16:26:47 -0500 Subject: [PATCH] [build] fix typo in src/CMakeLists.txt --- src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 04e46e50..27786efd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -385,8 +385,10 @@ if(WITH_MBEDTLS) check_include_files(mbedtls/ssl.h HAVE_MBEDTLS_SSL_H) if(HAVE_MBEDTLS_SSL_H) check_library_exists(mbedcrypto mbedtls_base64_encode "" HAVE_LIBMBEDCRYPTO) - if(HAVE_LIBMEDTLSCRYPTO) - check_library_exists(mbedtls mbedtls_cipher_info_from_type "" HAVE_LIBMBEDTLS) + if(HAVE_LIBMBEDCRYPTO) + set(CRYPTO_LIBRARY mbedcrypto) + set(HAVE_LIBCRYPTO 1) + check_library_exists(mbedtls mbedtls_cipher_info_from_type "" HAVE_LIBMBEDTLS) if(HAVE_LIBMBEDTLS) check_library_exists(mbedx509 mbedtls_x509_get_name "" HAVE_LIBMBEDX509) endif()