Skip to content

Commit

Permalink
tests BUGFIX link lib to plugins test dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jul 15, 2024
1 parent 1158163 commit 420979e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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} $<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)
Expand Down

0 comments on commit 420979e

Please sign in to comment.