summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2024-09-14 21:33:39 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2024-09-14 21:33:39 +0200
commitbbbd066221b53e8d95b93decaa376216c5dbf3e6 (patch)
tree32fc1b5ab080b0b66a9e6fb77ff9ccf32f0c8a2a
parent11c26eadf00c77ff11ac7f1b6e03ce9da51d670c (diff)
crypto: use find_library
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80546c0..9eec817 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,8 +28,8 @@ find_library(libuci NAMES uci)
find_library(libubox NAMES ubox)
find_library(libubus NAMES ubus)
find_library(libblobmsg_json NAMES blobmsg_json)
+find_library(libmbedtls NAMES mbedtls)
find_package(ZLIB)
-find_package(MbedTLS)
if(LINUX)
find_library(libnl_tiny NAMES nl-tiny)
@@ -55,7 +55,7 @@ if(ZLIB_FOUND)
set(DEFAULT_ZLIB_SUPPORT ON)
endif()
-if(MbedTLS_FOUND)
+if(libmbedtls)
set(DEFAULT_CRYPTO_MBEDTLS_SUPPORT ON)
endif()