From: Azat Khuzhin Date: Sat, 9 Jul 2022 17:40:52 +0000 (+0300) Subject: Support build dir of the MbedTLS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35e12a817530b665f508ebc832d944b7b0b2b63c;p=libevent Support build dir of the MbedTLS --- diff --git a/cmake/FindMbedTLS.cmake b/cmake/FindMbedTLS.cmake index c430269d..ee46bf28 100644 --- a/cmake/FindMbedTLS.cmake +++ b/cmake/FindMbedTLS.cmake @@ -98,21 +98,23 @@ else() set(_MBEDTLS_X509_LIB_NAME mbedx509) endif() +# lib - standard path suffix +# library - is the suffix that is used in build tree find_library(MBEDTLS_LIBRARY NAMES ${_MBEDTLS_LIB_NAME} - PATH_SUFFIXES lib + PATH_SUFFIXES lib library HINTS ${MBEDTLS_ROOT_DIR} ${_EXTRA_FIND_ARGS}) find_library(MBEDTLS_CRYPTO_LIBRARY NAMES ${_MBEDTLS_CRYPTO_LIB_NAME} - PATH_SUFFIXES lib + PATH_SUFFIXES lib library HINTS ${MBEDTLS_ROOT_DIR} ${_EXTRA_FIND_ARGS}) find_library(MBEDTLS_X509_LIBRARY NAMES ${_MBEDTLS_X509_LIB_NAME} - PATH_SUFFIXES lib + PATH_SUFFIXES lib library HINTS ${MBEDTLS_ROOT_DIR} ${_EXTRA_FIND_ARGS})