diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-03-17 10:42:52 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-03-17 10:42:52 +0100 |
commit | 2384236849001fcbbe4b15df237cca0e512f61f7 (patch) | |
tree | 185f01970182c34e0abbd0b7a73107bc5021810a /tests | |
parent | 252cd6eae92e19ac909a4354c42fca0f8c8b40a1 (diff) | |
download | libssh-2384236849001fcbbe4b15df237cca0e512f61f7.tar.gz libssh-2384236849001fcbbe4b15df237cca0e512f61f7.tar.xz libssh-2384236849001fcbbe4b15df237cca0e512f61f7.zip |
cmake: Try to fix FindArgp module
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 411d357b..30a03a58 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -31,10 +31,12 @@ endif (LIBSSH_THREADS) # create test library add_library(${TORTURE_LIBRARY} STATIC cmdline.c torture.c) -target_link_libraries(${TORTURE_LIBRARY} - ${TORTURE_LINK_LIBRARIES} - ${ARGP_LIBRARIES} -) +if (ARGP_LIBRARY) + target_link_libraries(${TORTURE_LIBRARY} + ${TORTURE_LINK_LIBRARIES} + ${ARGP_LIBRARY} + ) +endif() set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} |