Skip to content

Commit

Permalink
CMake: Fix build with system Mbed TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
abouvier committed May 26, 2023
1 parent 0f4dbdb commit 4d61ec1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMake/FindMBEDTLS.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
find_path(MBEDTLS_INCLUDE_DIR mbedtls/ssl.h)
find_path(MBEDTLS_INCLUDE_DIR mbedtls/ssl.h PATH_SUFFIXES mbedtls2)

find_library(MBEDTLS_LIBRARY mbedtls)
find_library(MBEDX509_LIBRARY mbedx509)
find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
find_library(MBEDTLS_LIBRARY mbedtls PATH_SUFFIXES mbedtls2)
find_library(MBEDX509_LIBRARY mbedx509 PATH_SUFFIXES mbedtls2)
find_library(MBEDCRYPTO_LIBRARY mbedcrypto PATH_SUFFIXES mbedtls2)

set(MBEDTLS_INCLUDE_DIRS ${MBEDTLS_INCLUDE_DIR})
set(MBEDTLS_LIBRARIES ${MBEDTLS_LIBRARY} ${MBEDX509_LIBRARY} ${MBEDCRYPTO_LIBRARY})
Expand Down

0 comments on commit 4d61ec1

Please sign in to comment.