aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/tls/mbedtls
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-11-13 22:31:18 -0800
committerGarrett D'Amore <garrett@damore.org>2020-11-14 21:31:43 -0800
commiteb328da56c3fc7167b536dcb206df0abb0f4a9b9 (patch)
treec92e3dd3db6a0f1b0efc6a027e7e4db6442068f0 /src/supplemental/tls/mbedtls
parent7c1ff5ed1e48af413494b9070cccf79f3858b749 (diff)
downloadnng-eb328da56c3fc7167b536dcb206df0abb0f4a9b9.tar.gz
nng-eb328da56c3fc7167b536dcb206df0abb0f4a9b9.tar.bz2
nng-eb328da56c3fc7167b536dcb206df0abb0f4a9b9.zip
fixes #1087 CMakeLists structural improvements desired
This doesn't modularize all the tests yet, but it goes a long way in the right direction.
Diffstat (limited to 'src/supplemental/tls/mbedtls')
-rw-r--r--src/supplemental/tls/mbedtls/CMakeLists.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/supplemental/tls/mbedtls/CMakeLists.txt b/src/supplemental/tls/mbedtls/CMakeLists.txt
index 22c8e1c6..a0af30c3 100644
--- a/src/supplemental/tls/mbedtls/CMakeLists.txt
+++ b/src/supplemental/tls/mbedtls/CMakeLists.txt
@@ -21,16 +21,10 @@ if (NNG_TLS_ENGINE STREQUAL "mbed")
# If Mbed TLS was added by a consuming project, then we should use that
# instance of it, instead of configuring our own.
if (TARGET mbedtls)
- set(_LIBS mbedtls)
+ nng_link_libraries(mbedtls)
else()
find_package(mbedTLS REQUIRED)
- set(_LIBS ${MBEDTLS_LIBRARIES})
- set(_INCS ${MBEDTLS_INCLUDE_DIR})
+ nng_link_libraries(${MBEDTLS_LIBRARIES})
+ nng_include_directories(${MBEDTLS_INCLUDE_DIR})
endif()
-
- list(APPEND NNG_LIBS ${_LIBS})
- list(APPEND NNG_INCS ${_INCS})
-
- set(NNG_LIBS ${NNG_LIBS} PARENT_SCOPE)
- set(NNG_INCS ${NNG_INCS} PARENT_SCOPE)
endif()