diff options
author | David Faure <faure@kde.org> | 2006-04-18 11:22:38 +0000 |
---|---|---|
committer | David Faure <faure@kde.org> | 2006-04-18 11:22:38 +0000 |
commit | 2b43aad081d13bdeb2ed8a65f65fbecfb470da0d (patch) | |
tree | 405e268ae2040a0266b2921ea2fa3ce8ffaded57 /modules/FindGIF.cmake | |
parent | f0436915e149f27532c6aece815e3169794dc72b (diff) | |
download | extra-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/FindGIF.cmake')
-rw-r--r-- | modules/FindGIF.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindGIF.cmake b/modules/FindGIF.cmake index a4316362..c809b243 100644 --- a/modules/FindGIF.cmake +++ b/modules/FindGIF.cmake @@ -7,14 +7,14 @@ # GIF_DEFINITIONS - Compiler switches required for using GIF # -IF (CACHED_GIF) +IF (DEFINED CACHED_GIF) # in cache already IF ("${CACHED_GIF}" STREQUAL "YES") SET(GIF_FOUND TRUE) ENDIF ("${CACHED_GIF}" STREQUAL "YES") -ELSE (CACHED_GIF) +ELSE (DEFINED CACHED_GIF) FIND_PATH(GIF_INCLUDE_DIR gif_lib.h /usr/include @@ -47,4 +47,4 @@ ELSE (CACHED_GIF) set(CACHED_GIF ${CACHED_GIF} CACHE INTERNAL "If gif was checked") MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARIES) -ENDIF (CACHED_GIF) +ENDIF (DEFINED CACHED_GIF) |