Skip to content

Commit

Permalink
fixup: disable HDF5 support if non-parallel rather than error
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jul 30, 2024
1 parent 80b0194 commit 398076d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ if(Cabana_ENABLE_HDF5)
LIST(APPEND CMAKE_REQUIRED_INCLUDES ${HDF5_INCLUDE_DIRS})
check_symbol_exists(H5_HAVE_PARALLEL "H5pubconf.h" HDF5_IS_PARALLEL)
if(NOT HDF5_IS_PARALLEL)
message(FATAL_ERROR "Cabana HDF5 support requires parallel HDF5.")
set(Cabana_ENABLE_HDF5 OFF)
message(WARNING "Cabana HDF5 support requires parallel HDF5.")
endif()
endif()

Expand Down

0 comments on commit 398076d

Please sign in to comment.