[cmake-developers] [PATCH] [Module] FindPNG: Add Env Hint via PNG_ROOT

Brad King brad.king at kitware.com
Fri Jun 27 12:17:00 EDT 2014


On 06/27/2014 11:04 AM, Huebl, Axel wrote:
> This patch provides users the optional hint via the environment
> variable PNG_ROOT.
> This comes very useful when libpng is not installed in a default
> location and/or if several versions are installed in parallel.

Typically it is not necessary to have a dedicated per-package root
directory setting like this.  Users can set CMAKE_PREFIX_PATH to
their custom prefixes and they will be searched first for all
packages.  See documentation here:

 http://www.cmake.org/cmake/help/v3.0/command/find_library.html
 http://www.cmake.org/cmake/help/v3.0/command/find_path.html

-Brad



More information about the cmake-developers mailing list