[CMake] FindHDF5.cmake problem

Will Dicharry wdicharry at stellarscience.com
Thu Oct 29 16:03:07 EDT 2009


James C. Sutherland wrote:
> It appears that the variable
>     HDF5_FOUND
> is not being set in the FindHDF5.cmake module.
> 
> Any way of getting this fixed prior to the 2.8.0 release?

It is set for my systems when it is found.  The standard system module 
FindPackageHandleStandardArgs should set it when we get through the 
module with good values for HDF5_LIBRARIES and HDF5_INCLUDE_DIR.  On my 
local system the following CMakeLists.txt:

find_package( HDF5 )
if( HDF5_FOUND )
   message( STATUS "HDF5_FOUND is set" )
endif()

prints
...
-- Found HDF5: 
/home/wdicharry/.local/lib/libhdf5.so;/home/wdicharry/.local/lib/libhdf5_hl.so;/usr/lib64/libz.so;/usr/lib64/libm.so
-- HDF5_FOUND is set
...

What are your values for HDF5_LIBRARIES and HDF5_INCLUDE_DIR?

-- Will

-- 
Will Dicharry
Software Developer
Stellar Science Ltd Co
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3344 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091029/ea37b67c/attachment.bin>


More information about the CMake mailing list