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/FindTIFF.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/FindTIFF.cmake') diff --git a/modules/FindTIFF.cmake b/modules/FindTIFF.cmake index 875797fd..18e051ba 100644 --- a/modules/FindTIFF.cmake +++ b/modules/FindTIFF.cmake @@ -7,14 +7,14 @@ # also defined, but NOT for general use are # TIFF_LIBRARY, where to find the TIFF library. -IF (CACHED_TIFF) +IF (DEFINED CACHED_TIFF) # in cache already IF ("${CACHED_TIFF}" STREQUAL "YES") SET(TIFF_FOUND TRUE) ENDIF ("${CACHED_TIFF}" STREQUAL "YES") -ELSE (CACHED_TIFF) +ELSE (DEFINED CACHED_TIFF) FIND_PATH(TIFF_INCLUDE_DIR tiff.h /usr/local/include @@ -50,4 +50,4 @@ ELSE (CACHED_TIFF) set(CACHED_TIFF ${CACHED_TIFF} CACHE INTERNAL "If tiff was checked") MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY) -ENDIF (CACHED_TIFF) +ENDIF (DEFINED CACHED_TIFF) -- cgit v1.2.1