aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2011-06-08 21:33:38 +0000
committerJörg Mayer <jmayer@loplof.de>2011-06-08 21:33:38 +0000
commit8aada8637d9cc6cfb593d39041065781bb0744ce (patch)
tree35149057f330db0452462c63733e8464db886b1d /cmake/modules
parent2eff7bab6626bedab9d9919d8ddd4976bf96f5b3 (diff)
As pointed out by Jakub Zawadzki:
While updating to the current cmake version of FindZLIB I missed a Wireshark specific addition. Add it back. svn path=/trunk/; revision=37626
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindZLIB.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/modules/FindZLIB.cmake b/cmake/modules/FindZLIB.cmake
index 14325a62ed..f3d15302d9 100644
--- a/cmake/modules/FindZLIB.cmake
+++ b/cmake/modules/FindZLIB.cmake
@@ -67,6 +67,12 @@ IF(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
SET(ZLIB_PATCH_VERSION "${ZLIB_VERSION_PATCH}")
ENDIF()
+INCLUDE(CheckFunctionExists)
+SET(CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
+CHECK_FUNCTION_EXISTS("inflatePrime" HAVE_INFLATEPRIME)
+# reset
+SET(CMAKE_REQUIRED_LIBRARIES "")
+
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)