Revert "Update to 7.40.1"
[platform/upstream/curl.git] / CMake / FindZLIB.cmake
1 # Locate zlib
2 include("${CMAKE_ROOT}/Modules/FindZLIB.cmake")
3
4 # starting 2.8 it is better to use standard modules
5 if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
6   find_library(ZLIB_LIBRARY_DEBUG NAMES zd zlibd zdlld zlib1d )
7   if(ZLIB_FOUND AND ZLIB_LIBRARY_DEBUG)
8     set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
9   endif()
10 endif()