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 --- include/libssh/CMakeLists.txt | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'include/libssh') diff --git a/include/libssh/CMakeLists.txt b/include/libssh/CMakeLists.txt index dc67ab96..af7b2ebb 100644 --- a/include/libssh/CMakeLists.txt +++ b/include/libssh/CMakeLists.txt @@ -8,6 +8,13 @@ set(libssh_HDRS ssh2.h ) +if (WITH_SERVER) + set(libssh_HDRS + ${libssh_HDRS} + server.h + ) +endif (WITH_SERVER) + install( FILES ${libssh_HDRS} @@ -17,18 +24,3 @@ install( headers ) -if (WITH_SERVER) - set(server_HDRS - server.h - ) - - install( - FILES - ${server_HDRS} - DESTINATION - ${INCLUDE_INSTALL_DIR}/${APPLICATION_NAME} - COMPONENT - libraries - ) -endif (WITH_SERVER) - -- cgit