aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsmbedtls
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-25 11:33:29 +0200
committerDamjan Marion <damarion@cisco.com>2018-08-25 11:56:03 +0200
commit74449b8b68801e0938f528f19d69e75644cb2ee9 (patch)
treee3ba6294196c478d1a53c296043fb3ca58c6ee9c /src/plugins/tlsmbedtls
parent2bfdda76d8b1cffcd8e30ca6855f293b1b1953c5 (diff)
cmake: improve add_vpp_plugin macro
Change-Id: Iffd5c45ab242a919592a1f686f7f880936b68a1a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/tlsmbedtls')
-rw-r--r--src/plugins/tlsmbedtls/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/tlsmbedtls/CMakeLists.txt b/src/plugins/tlsmbedtls/CMakeLists.txt
index 03f8a17fe86..13fa12e5c55 100644
--- a/src/plugins/tlsmbedtls/CMakeLists.txt
+++ b/src/plugins/tlsmbedtls/CMakeLists.txt
@@ -21,8 +21,13 @@ set (MBEDTLS_LIB ${MBEDTLS_LIB1} ${MBEDTLS_LIB2} ${MBEDTLS_LIB3})
if(MBEDTLS_INCLUDE_DIR AND MBEDTLS_LIB)
include_directories(${MBEDTLS_INCLUDE_DIR})
- add_vpp_plugin(tlsmbedtls_plugin tls_mbedtls.c)
- target_link_libraries(tlsmbedtls_plugin ${MBEDTLS_LIB})
+ add_vpp_plugin(tlsmbedtls
+ SOURCES
+ tls_mbedtls.c
+
+ LINK_LIBRARIES
+ ${MBEDTLS_LIB}
+ )
message(STATUS "Found mbedTLS in ${MBEDTLS_INCLUDE_DIR}")
else()
message(WARNING "-- mbedTLS not found - tlsmbedtls_plugin disabled")