mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
cmake: Support WITH_ZLIB and WITH_LIBZ)
This commit is contained in:
@@ -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_SSH1 "Build with SSH1 support" OFF)
|
||||||
option(WITH_SFTP "Build with SFTP support" ON)
|
option(WITH_SFTP "Build with SFTP support" ON)
|
||||||
option(WITH_SERVER "Build with SSH server 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_CLIENT_TESTING "Build with client tests; requires a running sshd" OFF)
|
||||||
option(WITH_BENCHMARKS "Build benchmarks tools" 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)
|
if(WITH_BENCHMARKS)
|
||||||
set(WITH_TESTING ON)
|
set(WITH_TESTING ON)
|
||||||
endif(WITH_BENCHMARKS)
|
endif(WITH_BENCHMARKS)
|
||||||
|
Reference in New Issue
Block a user