[CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

James C. Sutherland James.Sutherland at utah.edu
Tue Aug 31 18:44:33 EDT 2010


I typically have full HDF5 installations on my systems but am now going to a
system where the "hl" versions of the hdf5 libraries are not installed.

Although I don't need these, it appears that CMake is unwilling to let me
proceed without them.  I get the following error:

CMake Error: The following variables are used in this project, but they are
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake
> files:
> HDF5_hdf5_hl_LIBRARY_DEBUG (ADVANCED)
>     linked by target "tabprops" in directory /uufs/
> chpc.utah.edu/common/home/u0033394/TabProps/tabprops
> HDF5_hdf5_hl_LIBRARY_RELEASE (ADVANCED)
>     linked by target "tabprops" in directory /uufs/
> chpc.utah.edu/common/home/u0033394/TabProps/tabprops
>
>
By the way, the installed libraries are found:

-- Found HDF5: debug;HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND;/uufs/
> chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a;optimized;HDF5_hdf5_hl_LIBRARY_RELEASE-NOTFOUND;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a
>

My CMakeLists.txt file has the following:

set( HDF5_USE_STATIC_LIBRARIES 1 )
> find_package( HDF5 COMPONENTS C CXX )
>

Any idea of how to get fix this problem?

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100831/1b9968b6/attachment.htm>


More information about the CMake mailing list