summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)