From 977a1ed7e125f2e4bc2f2742405a62a719aa64d7 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 11 Nov 2020 19:23:51 +0000 Subject: [PATCH] link ordering fix for Linux --- test/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 19387036..f7db5d08 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -104,18 +104,19 @@ foreach(TEST_TARGET_NAME ${TEST_TARGET_NAMES}) target_link_libraries(${TEST_TARGET_NAME} "-framework foundation" "-framework security") endif() + # library with the most dependencies come first + target_link_libraries(${TEST_TARGET_NAME} ixwebsocket_test) + target_link_libraries(${TEST_TARGET_NAME} ixbots) + target_link_libraries(${TEST_TARGET_NAME} ixsnake) + target_link_libraries(${TEST_TARGET_NAME} ixcobra) + target_link_libraries(${TEST_TARGET_NAME} ixsentry) + if (JSONCPP_FOUND) target_include_directories(${TEST_TARGET_NAME} PRIVATE ${JSONCPP_INCLUDE_DIRS}) target_link_libraries(${TEST_TARGET_NAME} ${JSONCPP_LIBRARIES}) endif() - # library with the most dependencies come first - target_link_libraries(${TEST_TARGET_NAME} ixbots) - target_link_libraries(${TEST_TARGET_NAME} ixsnake) - target_link_libraries(${TEST_TARGET_NAME} ixcobra) - target_link_libraries(${TEST_TARGET_NAME} ixsentry) target_link_libraries(${TEST_TARGET_NAME} ixredis) - target_link_libraries(${TEST_TARGET_NAME} ixwebsocket_test) target_link_libraries(${TEST_TARGET_NAME} ixwebsocket) target_link_libraries(${TEST_TARGET_NAME} ixcrypto) target_link_libraries(${TEST_TARGET_NAME} ixcore)