aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-03-04 00:36:16 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-07-13 14:25:32 +0200
commit212261bb10a84be4651d18a7cd99f40f4f2bf9eb (patch)
tree6b3ececa2ab6301a3f1c0399363252292e4ef5fb /examples
parentfadbe80c4389185f80b3d5a8814510f957a6ca8a (diff)
downloadlibssh-212261bb10a84be4651d18a7cd99f40f4f2bf9eb.tar.gz
libssh-212261bb10a84be4651d18a7cd99f40f4f2bf9eb.tar.xz
libssh-212261bb10a84be4651d18a7cd99f40f4f2bf9eb.zip
examples:Compile samplessh on bsd too
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index f29ae1f3..190f0118 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -22,9 +22,6 @@ if (LINUX)
add_executable(scp_download scp_download.c ${examples_SRCS})
target_link_libraries(scp_download ${LIBSSH_SHARED_LIBRARY})
- add_executable(samplessh sample.c ${examples_SRCS})
- target_link_libraries(samplessh ${LIBSSH_SHARED_LIBRARY})
-
add_executable(sshnetcat sshnetcat.c ${examples_SRCS})
target_link_libraries(sshnetcat ${LIBSSH_SHARED_LIBRARY})
@@ -42,6 +39,9 @@ if (LINUX)
endif (LINUX)
+ add_executable(samplessh sample.c ${examples_SRCS})
+ target_link_libraries(samplessh ${LIBSSH_SHARED_LIBRARY})
+
if (WITH_SERVER)
add_executable(samplesshd samplesshd.c)
target_link_libraries(samplesshd ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})