tests: force linking of ns-3 libraries to test-runner

Prevents undefined symbols when tests are restricted by NS3_FILTER_MODULE_EXAMPLES_AND_TESTS
This commit is contained in:
Gabriel Ferreira
2023-12-23 23:23:12 +01:00
parent 5b48b64a83
commit f863b4bd26

View File

@@ -33,13 +33,11 @@ if(${ENABLE_TESTS})
if(${NS3_MONOLIB})
target_link_libraries(
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${LIB_AS_NEEDED_POST}
${lib-ns3-monolib} ${ns3-contrib-libs}
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${lib-ns3-monolib} ${ns3-contrib-libs} ${LIB_AS_NEEDED_POST}
)
else()
target_link_libraries(
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${LIB_AS_NEEDED_POST}
${ns3-libs} ${ns3-contrib-libs}
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${ns3-libs} ${ns3-contrib-libs} ${LIB_AS_NEEDED_POST}
)
endif()
endif()