Skip to content

Commit

Permalink
build: Mbed TLS should use MBEDTLS_ROOT first.
Browse files Browse the repository at this point in the history
The old MBEDTLS_ROOT_DIR is still honored for legacy compat, but
the version 4.3 find script won't use it by default.
  • Loading branch information
gdamore committed Feb 25, 2024
1 parent 6a403d0 commit 380799e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/FindMbedTLS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
#
# Hints:
#
# Set ``MBEDTLS_ROOT_DIR`` to the root directory of Mbed TLS installation.
# Set ``MBEDTLS_ROOT`` to the root directory of Mbed TLS installation.
#

set(_MBEDTLS_ROOT_HINTS ${MBEDTLS_ROOT_DIR} ENV MBEDTLS_ROOT_DIR)
set(_MBEDTLS_ROOT_HINTS ${MBEDTLS_ROOT} ENV MBEDTLS_ROOT)
if (NOT _MBEDTLS_ROOT_HINTS)
set(_MBEDTLS_ROOT_HINTS ${MBEDTLS_ROOT_DIR} ENV MBEDTLS_ROOT_DIR)
endif()

set(_MBED_REQUIRED_VARS MbedTLS_TARGET MbedX509_TARGET MbedCrypto_TARGET MbedTLS_VERSION)

Expand Down

0 comments on commit 380799e

Please sign in to comment.