aboutsummaryrefslogtreecommitdiff
path: root/DefineOptions.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-21 12:39:16 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-21 12:39:16 +0200
commit948400ed923bba1335cc0444df397da13cb07ef5 (patch)
tree09dadaa9ad9ffefffc7459b2c452b092c383d5d0 /DefineOptions.cmake
parenteb65f031af04a8f5c1ceaa014cdbdf5106b94c22 (diff)
downloadlibssh-948400ed923bba1335cc0444df397da13cb07ef5.tar.gz
libssh-948400ed923bba1335cc0444df397da13cb07ef5.tar.xz
libssh-948400ed923bba1335cc0444df397da13cb07ef5.zip
cmake: Support WITH_ZLIB and WITH_LIBZ)
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r--DefineOptions.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index 323d1afe..1340b442 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -1,4 +1,4 @@
-option(WITH_LIBZ "Build with ZLIB support" ON)
+option(WITH_ZLIB "Build with ZLIB support" ON)
option(WITH_SSH1 "Build with SSH1 support" OFF)
option(WITH_SFTP "Build with SFTP support" ON)
option(WITH_SERVER "Build with SSH server support" ON)
@@ -12,6 +12,12 @@ option(WITH_TESTING "Build with unit tests" OFF)
option(WITH_CLIENT_TESTING "Build with client tests; requires a running sshd" OFF)
option(WITH_BENCHMARKS "Build benchmarks tools" OFF)
+if (WITH_ZLIB)
+ set(WITH_ZLIB ON)
+else (WITH_ZLIB)
+ set(WITH_ZLIB OFF)
+endif (WITH_ZLIB)
+
if(WITH_BENCHMARKS)
set(WITH_TESTING ON)
endif(WITH_BENCHMARKS)