diff options
Diffstat (limited to 'cmake/modules/FindZLIB.cmake')
-rw-r--r-- | cmake/modules/FindZLIB.cmake | 6 |
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) |