From 74449b8b68801e0938f528f19d69e75644cb2ee9 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 25 Aug 2018 11:33:29 +0200 Subject: cmake: improve add_vpp_plugin macro Change-Id: Iffd5c45ab242a919592a1f686f7f880936b68a1a Signed-off-by: Damjan Marion --- src/plugins/tlsopenssl/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/plugins/tlsopenssl/CMakeLists.txt') diff --git a/src/plugins/tlsopenssl/CMakeLists.txt b/src/plugins/tlsopenssl/CMakeLists.txt index 7659cc0feaf..fac27f5457c 100644 --- a/src/plugins/tlsopenssl/CMakeLists.txt +++ b/src/plugins/tlsopenssl/CMakeLists.txt @@ -12,7 +12,13 @@ # limitations under the License. if(OPENSSL_FOUND) - add_vpp_plugin(tlsopenssl_plugin tls_openssl.c tls_async.c) - target_link_libraries(tlsopenssl_plugin ${OPENSSL_LIBRARIES}) + add_vpp_plugin(tlsopenssl + SOURCES + tls_openssl.c + tls_async.c + + LINK_LIBRARIES + ${OPENSSL_LIBRARIES} + ) endif() -- cgit 1.2.3-korg