diff --git a/CMakeLists.txt b/CMakeLists.txt index 50db8602d7..5e0bf4bf98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -802,6 +802,9 @@ endif() if(CURL_USE_MBEDTLS) find_package(MbedTLS REQUIRED) + if(MBEDTLS_VERSION VERSION_LESS 3.2.0) + message(FATAL_ERROR "mbedTLS v3.2.0 or newer is required.") + endif() set(_ssl_enabled ON) set(USE_MBEDTLS ON) list(APPEND CURL_LIBS ${MBEDTLS_LIBRARIES})