diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-23 07:43:04 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-23 07:43:04 +0000 |
commit | b02be3b73f3c285d4d5411dc20cbc0378bfd0dc1 (patch) | |
tree | 691568ff4b8f07df30a972bb7da6e4d965590f82 /cmake | |
parent | 2e64e68bf42001facad6180ab298d9f0f53d0b19 (diff) |
Add check for HAVE_GZCLEARERR.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34204 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindZLIB.cmake | 4 |
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) |