aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d783e7ac..c230ef6a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -86,7 +86,6 @@ set(libssh_SRCS
ecdh.c
error.c
getpass.c
- gzip.c
init.c
kex.c
known_hosts.c
@@ -157,6 +156,13 @@ if (WITH_SERVER)
)
endif (WITH_SERVER)
+if (WITH_ZLIB)
+ set(libssh_SRCS
+ ${libssh_SRCS}
+ gzip.c
+ )
+endif(WITH_ZLIB)
+
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${LIBSSH_PRIVATE_INCLUDE_DIRS}