aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-13 15:46:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-13 15:48:49 +0200
commit1663917f71317587425564298722740afec5ab47 (patch)
tree3cec30c5611bdce9668b77d2aee9e595bad18055 /examples
parent9bbbccc0e778d26600e0f3a891c164a881a805cc (diff)
downloadlibssh-1663917f71317587425564298722740afec5ab47.tar.gz
libssh-1663917f71317587425564298722740afec5ab47.tar.xz
libssh-1663917f71317587425564298722740afec5ab47.zip
cmake: Make GSSAPI optional.
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 a3db2355..842f022d 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -46,11 +46,13 @@ if (WITH_SERVER)
add_executable(samplesshd samplesshd.c)
target_link_libraries(samplesshd ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
- add_executable(samplesshd-cb samplesshd-cb.c)
- target_link_libraries(samplesshd-cb ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
+ if (WITH_GSSAPI)
+ add_executable(samplesshd-cb samplesshd-cb.c)
+ target_link_libraries(samplesshd-cb ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
- add_executable(proxy proxy.c)
- target_link_libraries(proxy ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
+ add_executable(proxy proxy.c)
+ target_link_libraries(proxy ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
+ endif (WITH_GSSAPI)
add_executable(samplesshd-kbdint samplesshd-kbdint.c)
target_link_libraries(samplesshd-kbdint ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})