aboutsummaryrefslogtreecommitdiff
path: root/modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2006-04-18 11:22:38 +0000
committerDavid Faure <faure@kde.org>2006-04-18 11:22:38 +0000
commit2b43aad081d13bdeb2ed8a65f65fbecfb470da0d (patch)
tree405e268ae2040a0266b2921ea2fa3ce8ffaded57 /modules/FindZLIB.cmake
parentf0436915e149f27532c6aece815e3169794dc72b (diff)
downloadextra-cmake-modules-2b43aad081d13bdeb2ed8a65f65fbecfb470da0d.tar.gz
extra-cmake-modules-2b43aad081d13bdeb2ed8a65f65fbecfb470da0d.tar.bz2
More use of the cache; fixing previous commit to not recheck everytime when something isn't available (e.g. agg for me).
svn path=/trunk/KDE/kdelibs/; revision=531000
Diffstat (limited to 'modules/FindZLIB.cmake')
-rw-r--r--modules/FindZLIB.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindZLIB.cmake b/modules/FindZLIB.cmake
index 0348cdd7..ecbca6fc 100644
--- a/modules/FindZLIB.cmake
+++ b/modules/FindZLIB.cmake
@@ -1,11 +1,11 @@
-IF (CACHED_ZLIB)
+IF (DEFINED CACHED_ZLIB)
# in cache already
IF ("${CACHED_ZLIB}" STREQUAL "YES")
SET(ZLIB_FOUND TRUE)
ENDIF ("${CACHED_ZLIB}" STREQUAL "YES")
-ELSE (CACHED_ZLIB)
+ELSE (DEFINED CACHED_ZLIB)
FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
/usr/include
@@ -38,4 +38,4 @@ ELSE (CACHED_ZLIB)
SET(CACHED_ZLIB ${CACHED_ZLIB} CACHE INTERNAL "If zlib was checked")
MARK_AS_ADVANCED(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-ENDIF (CACHED_ZLIB)
+ENDIF (DEFINED CACHED_ZLIB)