aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-11-08 16:28:35 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-11-08 16:28:35 +0100
commit01994ea302a1f07ac77bc14f449de0bb6f68cbfd (patch)
tree1c79a167a43980a2a88253e463a8af119a6bcc11 /examples/CMakeLists.txt
parentc4ddf62f7e64409af33c851508a7bf6c76065f32 (diff)
downloadlibssh-01994ea302a1f07ac77bc14f449de0bb6f68cbfd.tar.gz
libssh-01994ea302a1f07ac77bc14f449de0bb6f68cbfd.tar.xz
libssh-01994ea302a1f07ac77bc14f449de0bb6f68cbfd.zip
examples: Build server examples on Linux too
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 0b2bcffb..9bfdf451 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -33,7 +33,7 @@ if (UNIX AND NOT WIN32)
add_executable(ssh-client ssh_client.c ${examples_SRCS})
target_link_libraries(ssh-client ${LIBSSH_SHARED_LIBRARY})
- if (WITH_SERVER AND ARGP_LIBRARY)
+ if (WITH_SERVER AND (ARGP_LIBRARY OR HAVE_ARGP_H))
if (HAVE_LIBUTIL)
add_executable(ssh_server_fork ssh_server_fork.c)
target_link_libraries(ssh_server_fork ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARY} util)
@@ -50,7 +50,7 @@ if (UNIX AND NOT WIN32)
add_executable(samplesshd-kbdint samplesshd-kbdint.c)
target_link_libraries(samplesshd-kbdint ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARY})
- endif (WITH_SERVER AND ARGP_LIBRARY)
+ endif()
endif (UNIX AND NOT WIN32)
add_executable(exec exec.c ${examples_SRCS})