"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Modules/FindPNG.cmake" between
cmake-3.13.4.tar.gz and cmake-3.14.0-rc1.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software. Release candidate.

FindPNG.cmake  (cmake-3.13.4):FindPNG.cmake  (cmake-3.14.0-rc1)
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details. # file Copyright.txt or https://cmake.org/licensing for details.
#.rst: #[=======================================================================[.rst:
# FindPNG FindPNG
# ------- -------
#
# Find libpng, the official reference library for the PNG image format. Find libpng, the official reference library for the PNG image format.
#
# Imported targets Imported targets
# ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
#
# This module defines the following :prop_tgt:`IMPORTED` target: This module defines the following :prop_tgt:`IMPORTED` target:
#
# ``PNG::PNG`` ``PNG::PNG``
# The libpng library, if found. The libpng library, if found.
#
# Result variables Result variables
# ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
#
# This module will set the following variables in your project: This module will set the following variables in your project:
#
# ``PNG_INCLUDE_DIRS`` ``PNG_INCLUDE_DIRS``
# where to find png.h, etc. where to find png.h, etc.
# ``PNG_LIBRARIES`` ``PNG_LIBRARIES``
# the libraries to link against to use PNG. the libraries to link against to use PNG.
# ``PNG_DEFINITIONS`` ``PNG_DEFINITIONS``
# You should add_definitions(${PNG_DEFINITIONS}) before compiling code You should add_definitions(${PNG_DEFINITIONS}) before compiling code
# that includes png library files. that includes png library files.
# ``PNG_FOUND`` ``PNG_FOUND``
# If false, do not try to use PNG. If false, do not try to use PNG.
# ``PNG_VERSION_STRING`` ``PNG_VERSION_STRING``
# the version of the PNG library found (since CMake 2.8.8) the version of the PNG library found (since CMake 2.8.8)
#
# Obsolete variables Obsolete variables
# ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
#
# The following variables may also be set, for backwards compatibility: The following variables may also be set, for backwards compatibility:
#
# ``PNG_LIBRARY`` ``PNG_LIBRARY``
# where to find the PNG library. where to find the PNG library.
# ``PNG_INCLUDE_DIR`` ``PNG_INCLUDE_DIR``
# where to find the PNG headers (same as PNG_INCLUDE_DIRS) where to find the PNG headers (same as PNG_INCLUDE_DIRS)
#
# Since PNG depends on the ZLib compression library, none of the above Since PNG depends on the ZLib compression library, none of the above
# will be defined unless ZLib can be found. will be defined unless ZLib can be found.
#]=======================================================================]
if(PNG_FIND_QUIETLY) if(PNG_FIND_QUIETLY)
set(_FIND_ZLIB_ARG QUIET) set(_FIND_ZLIB_ARG QUIET)
endif() endif()
find_package(ZLIB ${_FIND_ZLIB_ARG}) find_package(ZLIB ${_FIND_ZLIB_ARG})
if(ZLIB_FOUND) if(ZLIB_FOUND)
find_path(PNG_PNG_INCLUDE_DIR png.h PATH_SUFFIXES include/libpng) find_path(PNG_PNG_INCLUDE_DIR png.h PATH_SUFFIXES include/libpng)
list(APPEND PNG_NAMES png libpng) list(APPEND PNG_NAMES png libpng)
 End of changes. 1 change blocks. 
43 lines changed or deleted 44 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)