diff options
Diffstat (limited to 'include/libssh')
| -rw-r--r-- | include/libssh/CMakeLists.txt | 20 | ||||
| -rw-r--r-- | include/libssh/sftp.h | 4 |
2 files changed, 19 insertions, 5 deletions
diff --git a/include/libssh/CMakeLists.txt b/include/libssh/CMakeLists.txt index bfbebdd8..dc67ab96 100644 --- a/include/libssh/CMakeLists.txt +++ b/include/libssh/CMakeLists.txt @@ -3,18 +3,32 @@ project(libssh-headers C) set(libssh_HDRS libssh.h crypto.h - server.h sftp.h ssh1.h ssh2.h ) -INSTALL( +install( FILES ${libssh_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/${APPLICATION_NAME} COMPONENT - libraries + headers ) +if (WITH_SERVER) + set(server_HDRS + server.h + ) + + install( + FILES + ${server_HDRS} + DESTINATION + ${INCLUDE_INSTALL_DIR}/${APPLICATION_NAME} + COMPONENT + libraries + ) +endif (WITH_SERVER) + diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 729f0ec9..ca549e35 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -607,7 +607,7 @@ char *sftp_canonicalize_path(SFTP_SESSION *sftp, const char *path); */ int sftp_server_version(SFTP_SESSION *sftp); -#ifndef NO_SERVER +#ifdef WITH_SERVER /** * @brief Create a new sftp server session. * @@ -627,7 +627,7 @@ SFTP_SESSION *sftp_server_new(SSH_SESSION *session, CHANNEL *chan); * @return 0 on success, < 0 on error. */ int sftp_server_init(SFTP_SESSION *sftp); -#endif +#endif /* WITH_SERVER */ /* this is not a public interface */ #define SFTP_HANDLES 256 |
