Browse Source

[build] adjust mbedtls vars in src/CMakeLists.txt

master
Glenn Strauss 1 month ago
parent
commit
2c875a649d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/CMakeLists.txt

+ 3
- 3
src/CMakeLists.txt View File

@ -384,10 +384,10 @@ endif()
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_LIBMBEDCRYPTO)
check_library_exists(mbedcrypto mbedtls_base64_encode "" HAVE_LIBCRYPTO)
if(HAVE_LIBCRYPTO)
set(CRYPTO_LIBRARY mbedcrypto)
set(HAVE_LIBCRYPTO 1)
set(HAVE_LIBMBEDCRYPTO 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)


Loading…
Cancel
Save