Skip to content

Commit

Permalink
tests BUGFIX do not link dynamic library
Browse files Browse the repository at this point in the history
Link yangobj directly instead.
  • Loading branch information
michalvasko committed Jul 4, 2024
1 parent 3dfd2b6 commit e55443f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ 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} $<TARGET_OBJECTS:yangobj>)
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 e55443f

Please sign in to comment.