From 420979e2f9cf7d3fa677ba0b51b52102e3e22f26 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 15 Jul 2024 15:44:53 +0200 Subject: [PATCH] tests BUGFIX link lib to plugins test dynamically --- tests/plugins/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/plugins/CMakeLists.txt b/tests/plugins/CMakeLists.txt index addcb5055..1e218243b 100644 --- a/tests/plugins/CMakeLists.txt +++ b/tests/plugins/CMakeLists.txt @@ -10,8 +10,9 @@ function(ly_add_plugin) list(APPEND PLUGIN_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/${PLUGIN_SOURCE}) endforeach() - add_library(${PLUGIN_NAME} MODULE ${PLUGIN_SOURCES} $) + add_library(${PLUGIN_NAME} MODULE ${PLUGIN_SOURCES}) set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "") + target_link_libraries(${PLUGIN_NAME} yang) endfunction(ly_add_plugin) ly_add_plugin(NAME invalid SOURCES invalid.c)