From b0e0b3232f2e844c6418cf1ee0a75e6531e6d18d Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 15 Nov 2019 13:54:26 +0000 Subject: [PATCH] fix linking issue --- lib/test/common/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/test/common/CMakeLists.txt b/lib/test/common/CMakeLists.txt index 351c8dbcf..4dd18601c 100644 --- a/lib/test/common/CMakeLists.txt +++ b/lib/test/common/CMakeLists.txt @@ -18,6 +18,8 @@ # and at http://www.gnu.org/licenses/. # +find_package(SCTP REQUIRED) + ####################################################################### # COMMON TESTS ####################################################################### @@ -81,5 +83,5 @@ target_link_libraries(timer_test srslte_common) add_test(timer_test timer_test) add_executable(network_utils_test network_utils_test.cc) -target_link_libraries(network_utils_test srslte_common ${CMAKE_THREAD_LIBS_INIT} ${SCTP_LIBRARIES}) +target_link_libraries(network_utils_test srslte_common ${SCTP_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) add_test(network_utils_test network_utils_test)