STYLE: Nightly Version update
[cmake.git] / Modules / FindZLIB.cmake
blobcb23b6dec066b5cd04b358c29f964a437dc3f03f
2 # Find the native ZLIB includes and library
4 # ZLIB_INCLUDE_DIR - where to find zlib.h, etc.
5 # ZLIB_LIBRARIES   - List of fully qualified libraries to link against when using zlib.
6 # ZLIB_FOUND       - Do not attempt to use zlib if "no" or undefined.
8 FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
9   /usr/local/include
10   /usr/include
13 FIND_LIBRARY(ZLIB_LIBRARY z
14   /usr/lib
15   /usr/local/lib
18 IF(ZLIB_INCLUDE_DIR)
19   IF(ZLIB_LIBRARY)
20     SET( ZLIB_LIBRARIES ${ZLIB_LIBRARY} )
21     SET( ZLIB_FOUND "YES" )
22   ENDIF(ZLIB_LIBRARY)
23 ENDIF(ZLIB_INCLUDE_DIR)