aboutsummaryrefslogtreecommitdiff
path: root/modules/FindBZip2.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/FindBZip2.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/FindBZip2.cmake')
-rw-r--r--modules/FindBZip2.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindBZip2.cmake b/modules/FindBZip2.cmake
index d6ade67a..0f05e0bf 100644
--- a/modules/FindBZip2.cmake
+++ b/modules/FindBZip2.cmake
@@ -8,14 +8,14 @@
# BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_
-IF (CACHED_BZIP2)
+IF (DEFINED CACHED_BZIP2)
# in cache already
IF ("${CACHED_BZIP2}" STREQUAL "YES")
SET(BZIP2_FOUND TRUE)
ENDIF ("${CACHED_BZIP2}" STREQUAL "YES")
-ELSE (CACHED_BZIP2)
+ELSE (DEFINED CACHED_BZIP2)
FIND_PATH(BZIP2_INCLUDE_DIR bzlib.h
/usr/include
@@ -50,4 +50,4 @@ ELSE (CACHED_BZIP2)
set(CACHED_BZIP2 ${CACHED_BZIP2} CACHE INTERNAL "If bzip2 was checked")
MARK_AS_ADVANCED(BZIP2_INCLUDE_DIR BZIP2_LIBRARIES)
-ENDIF( CACHED_BZIP2 )
+ENDIF(DEFINED CACHED_BZIP2)