From 62cebe23d9e62a4807c5ecb99f88e488055f2c92 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Oct 2009 14:03:00 +0200 Subject: Fixed build of sample client. --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3