MantisBT - CMake
View Issue Details
0011291CMakeModulespublic2010-10-06 06:192010-10-26 16:32
mariusmuja 
Brad King 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0011291: Bug in FindHDF5.cmake
Patch below:

--- FindHDF5.cmake.old 2010-10-06 03:16:57.661350963 -0700
+++ FindHDF5.cmake 2010-10-06 03:03:46.953350359 -0700
@@ -293,7 +293,7 @@
     # If the HDF5 include directory was found, open H5pubconf.h to determine if
     # HDF5 was compiled with parallel IO support
     set( HDF5_IS_PARALLEL FALSE )
- foreach( _dir HDF5_INCLUDE_DIRS )
+ foreach( _dir ${HDF5_INCLUDE_DIRS} )
         message("Looking in include dir: ${_dir}")
         if( EXISTS "${_dir}/H5pubconf.h" )
             file( STRINGS "${_dir}/H5pubconf.h"
No tags attached.
Issue History
2010-10-06 06:19mariusmujaNew Issue
2010-10-06 06:57Michael WildNote Added: 0022414
2010-10-11 09:37Brad KingStatusnew => assigned
2010-10-11 09:37Brad KingAssigned To => Brad King
2010-10-11 09:37Brad KingNote Added: 0022473
2010-10-11 09:37Brad KingStatusassigned => closed
2010-10-11 09:37Brad KingResolutionopen => fixed
2010-10-26 16:32David ColeFixed in Version => CMake 2.8.3
2010-10-26 16:32David ColeTarget Version => CMake 2.8.3

Notes
(0022414)
Michael Wild   
2010-10-06 06:57   
It's better to use "foreach(_dir IN LISTS HDF5_INCLUDE_DIRS)" with current CMake.
(0022473)
Brad King   
2010-10-11 09:37   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=34455326 [^]