tests BUGFIX link lib to plugins test dynamically
diff --git a/tests/plugins/CMakeLists.txt b/tests/plugins/CMakeLists.txt
index addcb50..1e21824 100644
--- a/tests/plugins/CMakeLists.txt
+++ b/tests/plugins/CMakeLists.txt
@@ -10,8 +10,9 @@
list(APPEND PLUGIN_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/${PLUGIN_SOURCE})
endforeach()
- add_library(${PLUGIN_NAME} MODULE ${PLUGIN_SOURCES} $<TARGET_OBJECTS:yangobj>)
+ 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)