summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-03-03 00:39:20 +0100
committerAndreas Schneider <mail@cynapses.org>2010-03-04 20:08:04 +0100
commit9cd5e97596aa10f349e960fb3ff5ca95634a1200 (patch)
treeae174eeb039cf535da97f912edda9992b27399e4
parent9f59be3224c1dcc34bd43c0bfea6b37f8e6f9bbf (diff)
downloadlibssh-9cd5e97596aa10f349e960fb3ff5ca95634a1200.tar.gz
libssh-9cd5e97596aa10f349e960fb3ff5ca95634a1200.tar.xz
libssh-9cd5e97596aa10f349e960fb3ff5ca95634a1200.zip
Fixed linking of the tests.
-rw-r--r--libssh/CMakeLists.txt5
-rw-r--r--tests/CMakeLists.txt4
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)