diff options
author | Will Dicharry <wdicharry@stellarscience.com> | 2009-11-13 18:25:05 (GMT) |
---|---|---|
committer | Will Dicharry <wdicharry@stellarscience.com> | 2009-11-13 18:25:05 (GMT) |
commit | eb7e4498c4ec4cdc7727990e36372437a5884e2d (patch) | |
tree | 4e500d3927804450ceb80244268cc9926234db4d /Modules/FindHDF5.cmake | |
parent | 3b8cab3a4652a34819ee54c9753732f7d67c2102 (diff) | |
download | CMake-eb7e4498c4ec4cdc7727990e36372437a5884e2d.zip CMake-eb7e4498c4ec4cdc7727990e36372437a5884e2d.tar.gz CMake-eb7e4498c4ec4cdc7727990e36372437a5884e2d.tar.bz2 |
Fixed parallel HDF5 detection when HDF5_INCLUDE_DIRS has multiple items.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index 53d7056..88b547c 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -292,16 +292,16 @@ else() # 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 ) - if( HDF5_INCLUDE_DIRS ) - if( EXISTS "${HDF5_INCLUDE_DIRS}/h5pubconf.h" ) - file( STRINGS "${HDF5_INCLUDE_DIRS}/H5pubconf.h" + foreach( _dir HDF5_INCLUDE_DIRS ) + if( EXISTS "${_dir}/h5pubconf.h" ) + file( STRINGS "${_dir}/H5pubconf.h" HDF5_HAVE_PARALLEL_DEFINE REGEX "HAVE_PARALLEL 1" ) if( HDF5_HAVE_PARALLEL_DEFINE ) set( HDF5_IS_PARALLEL TRUE ) endif() endif() - endif() + endforeach() set( HDF5_IS_PARALLEL ${HDF5_IS_PARALLEL} CACHE BOOL "HDF5 library compiled with parallel IO support" ) mark_as_advanced( HDF5_IS_PARALLEL ) |