From 78b6e25ededc7df14304b002fd8697232ca97e46 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 28 Mar 2009 21:58:54 +0000 Subject: Fix compilation of the server with option turned off. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@294 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libssh') diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt index 9c78d0d7..a62ec06f 100644 --- a/libssh/CMakeLists.txt +++ b/libssh/CMakeLists.txt @@ -89,7 +89,6 @@ set(libssh_SRCS misc.c options.c packet.c - server.c session.c sftp.c sftpserver.c @@ -98,6 +97,13 @@ set(libssh_SRCS wrapper.c ) +if (WITH_SERVER) + set(libssh_SRCS + ${libssh_SRCS} + server.c + ) +endif (WITH_SERVER) + include_directories( ${LIBSSH_PUBLIC_INCLUDE_DIRS} ${LIBSSH_PRIVATE_INCLUDE_DIRS} -- cgit