FindZLIB.cmake 385 B

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