From 398076d4aca7b89c20bd363c5dc37e21620a0c1f Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:32:49 -0400 Subject: [PATCH] fixup: disable HDF5 support if non-parallel rather than error --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcc2b2876..6eb29b82d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()