diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-11 10:43:02 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-11 10:43:02 +0200 |
commit | f57d2c327726b93741e986f7dc60f81007330dc9 (patch) | |
tree | 50bbc589b208289061b4f74cfd2e9cbcaec62534 /CMakeLists.txt | |
parent | 11a1ae59f4954b4109cbf0d54b058157d8402886 (diff) | |
download | libssh-f57d2c327726b93741e986f7dc60f81007330dc9.tar.gz libssh-f57d2c327726b93741e986f7dc60f81007330dc9.tar.xz libssh-f57d2c327726b93741e986f7dc60f81007330dc9.zip |
build: Fixed building without zlib.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fa78c5..dd6b69e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,9 @@ include(MacroAddPlugin) include(MacroCopyFile) # search for libraries -find_package(ZLIB REQUIRED) +if (WITH_LIBZ) + find_package(ZLIB REQUIRED) +endif (WITH_LIBZ) if (WITH_GCRYPT) find_package(GCrypt REQUIRED) |