diff options
Diffstat (limited to 'modules/FindBZip2.cmake')
-rw-r--r-- | modules/FindBZip2.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindBZip2.cmake b/modules/FindBZip2.cmake index d6ade67a..0f05e0bf 100644 --- a/modules/FindBZip2.cmake +++ b/modules/FindBZip2.cmake @@ -8,14 +8,14 @@ # BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_ -IF (CACHED_BZIP2) +IF (DEFINED CACHED_BZIP2) # in cache already IF ("${CACHED_BZIP2}" STREQUAL "YES") SET(BZIP2_FOUND TRUE) ENDIF ("${CACHED_BZIP2}" STREQUAL "YES") -ELSE (CACHED_BZIP2) +ELSE (DEFINED CACHED_BZIP2) FIND_PATH(BZIP2_INCLUDE_DIR bzlib.h /usr/include @@ -50,4 +50,4 @@ ELSE (CACHED_BZIP2) set(CACHED_BZIP2 ${CACHED_BZIP2} CACHE INTERNAL "If bzip2 was checked") MARK_AS_ADVANCED(BZIP2_INCLUDE_DIR BZIP2_LIBRARIES) -ENDIF( CACHED_BZIP2 ) +ENDIF(DEFINED CACHED_BZIP2) |