diff options
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) |