Browse Source

FindZLIB: FindPackageHandleStandardArgs already contains the quiet handling

Kovarththanan Rajaratnam 15 years ago
parent
commit
5ea4992621
1 changed files with 2 additions and 7 deletions
  1. 2 7
      Modules/FindZLIB.cmake

+ 2 - 7
Modules/FindZLIB.cmake

@@ -18,16 +18,11 @@
 # (To distributed this file outside of CMake, substitute the full
 # (To distributed this file outside of CMake, substitute the full
 #  License text for the above reference.)
 #  License text for the above reference.)
 
 
-IF (ZLIB_INCLUDE_DIR)
-  # Already in cache, be silent
-  SET(ZLIB_FIND_QUIETLY TRUE)
-ENDIF (ZLIB_INCLUDE_DIR)
-
 FIND_PATH(ZLIB_INCLUDE_DIR zlib.h)
 FIND_PATH(ZLIB_INCLUDE_DIR zlib.h)
 
 
 SET(ZLIB_NAMES z zlib zdll)
 SET(ZLIB_NAMES z zlib zdll)
-FIND_LIBRARY(ZLIB_LIBRARY NAMES ${ZLIB_NAMES} )
-MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR )
+FIND_LIBRARY(ZLIB_LIBRARY NAMES ${ZLIB_NAMES})
+MARK_AS_ADVANCED(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
 
 
 # Per-recommendation
 # Per-recommendation
 SET(ZLIB_INCLUDE_DIRS "${ZLIB_INCLUDE_DIR}")
 SET(ZLIB_INCLUDE_DIRS "${ZLIB_INCLUDE_DIR}")