diff options
Diffstat (limited to 'modules/FindBZip2.cmake')
-rw-r--r-- | modules/FindBZip2.cmake | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/FindBZip2.cmake b/modules/FindBZip2.cmake index 4a6fae71..3bcc1748 100644 --- a/modules/FindBZip2.cmake +++ b/modules/FindBZip2.cmake @@ -22,20 +22,20 @@ FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2 ${GNUWIN32_DIR}/lib ) -if(BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES) +if (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES) set(BZIP2_FOUND TRUE) INCLUDE(CheckLibraryExists) CHECK_LIBRARY_EXISTS(${BZIP2_LIBRARIES} BZ2_bzCompressInit "" BZIP2_NEED_PREFIX) -endif(BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES) +endif (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES) -if(BZIP2_FOUND) - if(NOT BZip2_FIND_QUIETLY) +if (BZIP2_FOUND) + if (NOT BZip2_FIND_QUIETLY) message(STATUS "Found BZip2: ${BZIP2_LIBRARIES}") - endif(NOT BZip2_FIND_QUIETLY) -else(BZIP2_FOUND) - if(BZip2_FIND_REQUIRED) + endif (NOT BZip2_FIND_QUIETLY) +else (BZIP2_FOUND) + if (BZip2_FIND_REQUIRED) message(FATAL_ERROR "Could NOT find BZip2") - endif(BZip2_FIND_REQUIRED) -endif(BZIP2_FOUND) + endif (BZip2_FIND_REQUIRED) +endif (BZIP2_FOUND) MARK_AS_ADVANCED(BZIP2_INCLUDE_DIR BZIP2_LIBRARIES) |