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/FindPCRE.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/FindPCRE.cmake') diff --git a/modules/FindPCRE.cmake b/modules/FindPCRE.cmake index 2898a7d9..f7a7e9cc 100644 --- a/modules/FindPCRE.cmake +++ b/modules/FindPCRE.cmake @@ -5,14 +5,14 @@ # PCRE_INCLUDE_DIR - the PCRE include directory # PCRE_LIBRARIES - The libraries needed to use PCRE -IF (CACHED_PCRE) +IF (DEFINED CACHED_PCRE) # in cache already IF ("${CACHED_PCRE}" STREQUAL "YES") SET(PCRE_FOUND TRUE) ENDIF ("${CACHED_PCRE}" STREQUAL "YES") -ELSE (CACHED_PCRE) +ELSE (DEFINED CACHED_PCRE) FIND_PATH(PCRE_INCLUDE_DIR pcre.h /usr/include/ @@ -53,4 +53,4 @@ ELSE (CACHED_PCRE) set(CACHED_PCRE ${CACHED_PCRE} CACHE INTERNAL "If pcre was checked") MARK_AS_ADVANCED(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY) -ENDIF (CACHED_PCRE) +ENDIF (DEFINED CACHED_PCRE) -- cgit v1.2.1