Bläddra i källkod

FindHDF5: Fix typo in parallel-IO support check (#11291)

Brad King 15 år sedan
förälder
incheckning
3445532652
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Modules/FindHDF5.cmake

+ 1 - 1
Modules/FindHDF5.cmake

@@ -293,7 +293,7 @@ else()
     # If the HDF5 include directory was found, open H5pubconf.h to determine if
     # If the HDF5 include directory was found, open H5pubconf.h to determine if
     # HDF5 was compiled with parallel IO support
     # HDF5 was compiled with parallel IO support
     set( HDF5_IS_PARALLEL FALSE )
     set( HDF5_IS_PARALLEL FALSE )
-    foreach( _dir HDF5_INCLUDE_DIRS )
+    foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
         if( EXISTS "${_dir}/H5pubconf.h" )
         if( EXISTS "${_dir}/H5pubconf.h" )
             file( STRINGS "${_dir}/H5pubconf.h" 
             file( STRINGS "${_dir}/H5pubconf.h" 
                 HDF5_HAVE_PARALLEL_DEFINE
                 HDF5_HAVE_PARALLEL_DEFINE