aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2010-09-23 07:43:04 +0000
committerJörg Mayer <jmayer@loplof.de>2010-09-23 07:43:04 +0000
commite762964cd73d615be0f3399dfe7fcb69ab7ef57a (patch)
tree691568ff4b8f07df30a972bb7da6e4d965590f82 /cmake/modules/FindZLIB.cmake
parent907cfc535a0efce5806652ec18698d7ab48f2f9b (diff)
Add check for HAVE_GZCLEARERR.
svn path=/trunk/; revision=34204
Diffstat (limited to 'cmake/modules/FindZLIB.cmake')
-rw-r--r--cmake/modules/FindZLIB.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindZLIB.cmake b/cmake/modules/FindZLIB.cmake
index a93dfc7ddb..5f8f24b587 100644
--- a/cmake/modules/FindZLIB.cmake
+++ b/cmake/modules/FindZLIB.cmake
@@ -35,6 +35,10 @@ MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR )
SET(ZLIB_INCLUDE_DIRS "${ZLIB_INCLUDE_DIR}")
SET(ZLIB_LIBRARIES "${ZLIB_LIBRARY}")
+INCLUDE(CheckFunctionExists)
+SET(CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
+CHECK_FUNCTION_EXISTS("gzclearerr" HAVE_GZCLEARERR)
+
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)