1# Locate zlib 2include("${CMAKE_ROOT}/Modules/FindZLIB.cmake") 3 4# starting 2.8 it is better to use standard modules 5if(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() 10endif() 11