aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-08 21:33:38 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-08 21:33:38 +0000
commitf6ffe667d5fbaae5d1429e5b8c834062d206438e (patch)
tree35149057f330db0452462c63733e8464db886b1d /cmake/modules
parent28924300b8ad34a0f93cce9c5c9aa86c0b415d4b (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37626 f5534014-38df-0310-8fa8-9805f1628bb7
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)