[CMake] FindHDF5.cmake problem

James C. Sutherland James.Sutherland at utah.edu
Thu Oct 29 16:38:28 EDT 2009


On Oct 29, 2009, at 2:03 PM, Will Dicharry wrote:

> 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
>

My apologies.  I must have had something wrong with my cache file.  I  
wiped it out and re-ran it without problem.
Thanks again for providing this...


More information about the CMake mailing list