Skip to content

Commit 305c7f2

Browse files
authored
Merge pull request #4814 from guj/hdf5-2.0-cmake
Detect the new flag HDF5_PROVIDES_PARALLEL from 2.0
2 parents 69173d9 + dae5a6a commit 305c7f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/FindHDF5.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ if(CMAKE_VERSION VERSION_LESS 3.19)
99
else()
1010
include(${CMAKE_ROOT}/Modules/FindHDF5.cmake)
1111
endif()
12+
13+
if ( HDF5_PROVIDES_PARALLEL )
14+
if(NOT DEFINED HDF5_IS_PARALLEL)
15+
message (STATUS "ADIOS is double checking to use the HDF2.0 parallel flag")
16+
set(HDF5_IS_PARALLEL ${HDF5_PROVIDES_PARALLEL})
17+
message (STATUS "HDF is set to parralel: ${HDF5_IS_PARALLEL}")
18+
endif()
19+
endif()
20+

0 commit comments

Comments
 (0)