Skip to content
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,15 @@ message(" Build Options:")
foreach(opt IN LISTS ADIOS2_CONFIG_OPTS)
message_pad(" ${opt}" 25 label)
if(${ADIOS2_HAVE_${opt}})
message("${label}: ON")
if (${opt} STREQUAL "HDF5")
if (HDF5_IS_PARALLEL)
message("${label}: ON, parallel ")
else()
message("${label}: ON, serial ")
endif()
else()
message("${label}: ON")
endif()
else()
message("${label}: OFF")
endif()
Expand Down
6 changes: 3 additions & 3 deletions cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ endif()
# HDF5
if(ADIOS2_USE_HDF5 STREQUAL AUTO)
find_package(HDF5 COMPONENTS C)
if(HDF5_FOUND AND (NOT HDF5_IS_PARALLEL OR ADIOS2_HAVE_MPI))
set(ADIOS2_HAVE_HDF5 TRUE)
endif()
elseif(ADIOS2_USE_HDF5)
find_package(HDF5 REQUIRED COMPONENTS C)
endif()

if (HDF5_FOUND)
if(HDF5_IS_PARALLEL AND NOT ADIOS2_HAVE_MPI)
message(FATAL_ERROR "MPI is disabled but parallel HDF5 is detected.")
endif()
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/cmake/ci-win2022-vs2022-msmpi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ADIOS2_BUILD_EXAMPLES:BOOL=ON
ADIOS2_USE_BZip2:BOOL=OFF
ADIOS2_USE_Fortran:BOOL=OFF
ADIOS2_USE_MPI:BOOL=ON
ADIOS2_USE_HDF5_VOL:STRING=OFF
ADIOS2_USE_Python:BOOL=ON

Python_ROOT_DIR:PATH=$ENV{CMAKE_PREFIX_PATH}
Expand Down
Loading
Loading