From 2b43aad081d13bdeb2ed8a65f65fbecfb470da0d Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 18 Apr 2006 11:22:38 +0000 Subject: 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 --- modules/FindGIF.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/FindGIF.cmake') 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) -- cgit v1.2.1