aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndrew Wiley <wiley@outlook.com>2021-05-01 12:17:53 -0700
committerAndrew Wiley <wiley@outlook.com>2021-06-04 22:27:51 -0700
commit6aa88e22d60569920c237272b4de120237f92945 (patch)
treefabc57561cb827d1d242285bfb0977b9a168d003 /examples
parentbd7bef8b501f1a427ff10ad94164dfa4201bdc71 (diff)
downloadlibssh-6aa88e22d60569920c237272b4de120237f92945.tar.gz
libssh-6aa88e22d60569920c237272b4de120237f92945.tar.xz
libssh-6aa88e22d60569920c237272b4de120237f92945.zip
build samplesshd-cb example on Windows too
Signed-off-by: Andrew Wiley <wiley@outlook.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 49c19183..239f9005 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -47,10 +47,6 @@ if (UNIX AND NOT WIN32)
endif (HAVE_LIBUTIL)
if (WITH_GSSAPI AND GSSAPI_FOUND)
- add_executable(samplesshd-cb samplesshd-cb.c)
- target_compile_options(samplesshd-cb PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
- target_link_libraries(samplesshd-cb ssh::ssh ${ARGP_LIBRARY})
-
add_executable(proxy proxy.c)
target_compile_options(proxy PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(proxy ssh::ssh ${ARGP_LIBRARY})
@@ -71,6 +67,12 @@ if (UNIX AND NOT WIN32)
endif()
endif (UNIX AND NOT WIN32)
+if (WITH_SERVER)
+ add_executable(samplesshd-cb samplesshd-cb.c)
+ target_compile_options(samplesshd-cb PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
+ target_link_libraries(samplesshd-cb ssh::ssh ${ARGP_LIBRARY})
+endif()
+
add_executable(exec exec.c ${examples_SRCS})
target_compile_options(exec PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(exec ssh::ssh)