aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-10-11 06:10:32 +0000
committerGuy Harris <guy@alum.mit.edu>2013-10-11 06:10:32 +0000
commit059423c27a56cbfa5b5d3a87edf15ea7dd38b0ea (patch)
tree01beaf61cdb760adcd2589462ef0e8ca0d13ff45 /cmake/modules/FindZLIB.cmake
parent75ccff574414fdfdba1167385a2f50faf956fd7c (diff)
Fix check for inflatePrime in zlib (ZLIB_LIBRARIES isn't set at that
point, you want ZLIB_LIBRARY). svn path=/trunk/; revision=52532
Diffstat (limited to 'cmake/modules/FindZLIB.cmake')
-rw-r--r--cmake/modules/FindZLIB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindZLIB.cmake b/cmake/modules/FindZLIB.cmake
index 595111c15d..0e6c4a384e 100644
--- a/cmake/modules/FindZLIB.cmake
+++ b/cmake/modules/FindZLIB.cmake
@@ -80,7 +80,7 @@ IF(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
ENDIF()
INCLUDE(CheckFunctionExists)
-SET(CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
+SET(CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARY})
CHECK_FUNCTION_EXISTS("inflatePrime" HAVE_INFLATEPRIME)
# reset
SET(CMAKE_REQUIRED_LIBRARIES "")