From 16d58e93afe2b780d140d53f50a48c049f6ce728 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Mar 2016 10:45:40 +0100 Subject: [PATCH] cmake: Fix torture build Signed-off-by: Andreas Schneider --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 30a03a58..f538a045 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -31,9 +31,11 @@ endif (LIBSSH_THREADS) # create test library add_library(${TORTURE_LIBRARY} STATIC cmdline.c torture.c) -if (ARGP_LIBRARY) target_link_libraries(${TORTURE_LIBRARY} ${TORTURE_LINK_LIBRARIES} + ) +if (ARGP_LIBRARY) + target_link_libraries(${TORTURE_LIBRARY} ${ARGP_LIBRARY} ) endif()