aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-10-02 14:03:00 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-02 17:21:59 +0200
commit62cebe23d9e62a4807c5ecb99f88e488055f2c92 (patch)
tree524cb9145263fc001c394060994671d817dd8270
parent42aacc71069d31ff039b4deda2ad13beb08944bd (diff)
downloadlibssh-62cebe23d9e62a4807c5ecb99f88e488055f2c92.tar.gz
libssh-62cebe23d9e62a4807c5ecb99f88e488055f2c92.tar.xz
libssh-62cebe23d9e62a4807c5ecb99f88e488055f2c92.zip
Fixed build of sample client.
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 210512b6..b5dedd36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,11 +69,13 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
if (UNIX AND NOT WIN32)
add_subdirectory(examples)
- if (WITH_SFTP AND WITH_SERVER)
+ if (WITH_SFTP)
add_executable(samplessh sample.c)
- add_executable(samplesshd samplesshd.c)
-
target_link_libraries(samplessh ${LIBSSH_SHARED_LIBRARY})
+ endif (WITH_SFTP)
+
+ if (WITH_SERVER)
+ add_executable(samplesshd samplesshd.c)
target_link_libraries(samplesshd ${LIBSSH_SHARED_LIBRARY})
- endif (WITH_SFTP AND WITH_SERVER)
+ endif (WITH_SERVER)
endif (UNIX AND NOT WIN32)