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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to