I had a 'duh-phiphany'.  I realized the find module doesn't use HDF5_ROOT as
a cache variable.  Its expected to be an environment variable.  I created a
cache variable and used that with a set(ENV xxx) call and then did the
find(HDF5) call.

Works great.

Thanks for the suggestions.  They will help me diagnose other issues in the
future.

Aaron R>

On Tue, Dec 21, 2010 at 10:43 AM, Tyler Roscoe <[email protected]> wrote:

> On Tue, Dec 21, 2010 at 10:04:25AM -0700, Aaron R> wrote:
> > I'm trying to setup a cmake project on windows which needs the HDF5
> > library.  I put the prebuilt libraries under c:\hdf5-1.8.5-win32.  I set
> > HDF5_ROOT in the cmakelists file and then called find(HDF5).  Its not
> > finding it.  I've tried specifying components as well and still nothing.
>
> You can add some message() commands to FindHDF5.cmake to inspect things.
> You could also try cmake --trace to get debug output (note: the output
> is extremely verbose).
>
> tyler
>
_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to