From 75e5dbaaa46d9f8d8ee4e3fd6733589cb502987d Mon Sep 17 00:00:00 2001 From: xndcn Date: Mon, 22 Jul 2024 02:34:23 +0800 Subject: [PATCH] build: Fix incorrect name case in FindmbedTLS.cmake (#1817) Corrected MBEDTLS_FIND_REQUIRED to mbedTLS_FIND_REQUIRED, since the package name is "mbedTLS" for case sensitive environment --- cmake/modules/FindmbedTLS.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/modules/FindmbedTLS.cmake b/cmake/modules/FindmbedTLS.cmake index 461464486..4f9c73e46 100644 --- a/cmake/modules/FindmbedTLS.cmake +++ b/cmake/modules/FindmbedTLS.cmake @@ -55,9 +55,9 @@ IF(MBEDTLS_FOUND) MESSAGE(STATUS " Crypto: ${MBEDCRYPTO_LIBRARY}") ENDIF(NOT MBEDTLS_FIND_QUIETLY) ELSE(MBEDTLS_FOUND) - IF(MBEDTLS_FIND_REQUIRED) + IF(mbedTLS_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could not find mbedTLS") - ENDIF(MBEDTLS_FIND_REQUIRED) + ENDIF(mbedTLS_FIND_REQUIRED) ENDIF(MBEDTLS_FOUND) MARK_AS_ADVANCED( @@ -67,4 +67,4 @@ MARK_AS_ADVANCED( MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY -) \ No newline at end of file +)