1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-05 21:39:15 +03:00

examples: Build server examples on Linux too

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2017-11-08 16:28:35 +01:00
parent c4ddf62f7e
commit 01994ea302

View File

@ -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})