From 7b4d9367eaf3279a5823415cca5817390e6bead5 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Wed, 19 Mar 2014 21:08:08 +0100 Subject: [PATCH] Don't actually build miniz if we have zlib We don't use miniz if we have zlib; but it was still being built, because we never actually set HAVE_ZLIB as a build system variable. Use ZLIB_FOUND instead. --- src/common/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 4e835cdf..c968eb48 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -93,9 +93,9 @@ if (HAVE_QCA2) set(HEADERS ${HEADERS} keyevent.h) endif(HAVE_QCA2) -if(NOT HAVE_ZLIB) +if (NOT ZLIB_FOUND) set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c) -endif(NOT HAVE_ZLIB) +endif() if(APPLE) set(SOURCES ${SOURCES} mac_utils.cpp) -- 2.20.1