summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake2
-rw-r--r--tests/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1be7583..b74407c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -79,7 +79,7 @@ if (UNIX)
check_function_exists(getaddrinfo HAVE_GETADDRINFO)
endif (UNIX)
-set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries")
+set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries")
# STRUCT MEMBERS
check_struct_has_member("struct sockaddr" sa_len "sys/socket.h netinet/in.h" HAVE_STRUCT_SOCKADDR_SA_LEN)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 123a3c4..e5abd2c 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -6,7 +6,7 @@ include_directories(
${CMOCKA_INCLUDE_DIR}
)
-add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY})
+add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY} ${SWRAP_REQUIRED_LIBRARIES})
set_property(
TEST
testsuite