aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 39e83dc..e6e294e 100644
--- a/meson.build
+++ b/meson.build
@@ -12,7 +12,13 @@ libgit2_dep = dependency('libgit2')
libzip_dep = dependency('libzip')
lua_dep = dependency('lua')
-if not mbedtls_dep.found()
+if mbedtls_dep.found()
+ mbedtls_dep = [
+ mbedtls_dep,
+ dependency('mbedx509', version: '<3', required: true),
+ dependency('mbedcrypto', version: '<3', required: true),
+ ]
+else
# Using has_headers to distinguish between mbedtls2 and mbedtls3
_mbedtls_dep = cc.find_library('mbedtls', has_headers: 'mbedtls/net.h', required: false)
if _mbedtls_dep.found()