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

Huebl, Axel a.huebl at hzdr.de
Fri Jun 27 12:37:39 EDT 2014


CMAKE_PREFIX_PATH is indeed an option, too.

The main intension of the patch is to align the package with the
standard functionality of other modules (Boost, MPI, HDF5 and similar).

Axel

On 27.06.2014 18:17, Brad King wrote:
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4921 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140627/5fe3d1a4/attachment-0002.bin>


More information about the cmake-developers mailing list