diff options
Diffstat (limited to 'modules/FindPCRE.cmake')
-rw-r--r-- | modules/FindPCRE.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
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) |