From 8bcb835aa4ffb4e11deeb6ecea17387193ef7e8f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 2 Mar 2010 23:48:45 +0100 Subject: Fixed unit testing. --- tests/CMakeLists.txt | 2 +- tests/unittests/torture_misc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3acee2ea..02f40fb4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories( # create test library add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c) -target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_LIBRARY}) +target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY}) set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY}) diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index 54fc7c30..bc0442c1 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -1,5 +1,7 @@ #include #include + +#define LIBSSH_STATIC #include #include "torture.h" -- cgit