From 9cd5e97596aa10f349e960fb3ff5ca95634a1200 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 3 Mar 2010 00:39:20 +0100 Subject: Fixed linking of the tests. --- libssh/CMakeLists.txt | 5 +++++ tests/CMakeLists.txt | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt index 43c40f05..0b3eaf0d 100644 --- a/libssh/CMakeLists.txt +++ b/libssh/CMakeLists.txt @@ -67,6 +67,11 @@ if (GCRYPT_LIBRARY) ) endif (GCRYPT_LIBRARY) +set(LIBSSH_LINK_LIBRARIES + ${LIBSSH_LINK_LIBRARIES} + CACHE INTERNAL "libssh link libraries" +) + set(libssh_SRCS agent.c auth.c diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 02f40fb4..817d3a73 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,8 +12,8 @@ include_directories( # create test library add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c) -target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY}) +target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) -set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY}) +set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) add_subdirectory(unittests) -- cgit