From b6d26238fc4095e00656a1bc4f8ab780af3cb878 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 5 Feb 2023 19:36:17 -0400 Subject: Fill NNG_PKGS to request nng dependencies from installed location. (#1641) Signed-off-by: Andrey Vostrikov Co-authored-by: Andrey Vostrikov --- src/platform/posix/CMakeLists.txt | 4 ++-- src/sp/transport/zerotier/CMakeLists.txt | 2 +- src/supplemental/tls/mbedtls/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/platform/posix/CMakeLists.txt b/src/platform/posix/CMakeLists.txt index 7b619fa2..dcfea221 100644 --- a/src/platform/posix/CMakeLists.txt +++ b/src/platform/posix/CMakeLists.txt @@ -13,7 +13,7 @@ # the static library unless they also go into the dynamic. if (NNG_PLATFORM_POSIX) - find_package(Threads REQUIRED) + nng_find_package(Threads) nng_link_libraries(Threads::Threads) # Unconditionally declare the following feature test macros. These are @@ -108,4 +108,4 @@ if (NNG_PLATFORM_POSIX) nng_test(posix_ipcwinsec_test) -endif () \ No newline at end of file +endif () diff --git a/src/sp/transport/zerotier/CMakeLists.txt b/src/sp/transport/zerotier/CMakeLists.txt index 903b7f56..dedc9296 100644 --- a/src/sp/transport/zerotier/CMakeLists.txt +++ b/src/sp/transport/zerotier/CMakeLists.txt @@ -28,7 +28,7 @@ if (NNG_TRANSPORT_ZEROTIER) Consult a lawyer and the license files for details. ************************************************************") - find_package(zerotiercore REQUIRED) + nng_find_package(zerotiercore) nng_link_libraries(zerotiercore::zerotiercore) nng_defines(NNG_TRANSPORT_ZEROTIER) diff --git a/src/supplemental/tls/mbedtls/CMakeLists.txt b/src/supplemental/tls/mbedtls/CMakeLists.txt index a0af30c3..2d639efa 100644 --- a/src/supplemental/tls/mbedtls/CMakeLists.txt +++ b/src/supplemental/tls/mbedtls/CMakeLists.txt @@ -23,7 +23,7 @@ if (NNG_TLS_ENGINE STREQUAL "mbed") if (TARGET mbedtls) nng_link_libraries(mbedtls) else() - find_package(mbedTLS REQUIRED) + nng_find_package(mbedTLS) nng_link_libraries(${MBEDTLS_LIBRARIES}) nng_include_directories(${MBEDTLS_INCLUDE_DIR}) endif() -- cgit v1.2.3-70-g09d2