From 7abc3dd5972d9f2ab51249f68501f5d9cc08fd25 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 2 Feb 2022 04:26:28 -0600 Subject: [PATCH] CMake: Put FindHDF5 hints back in place --- cmake/modules/FindHDF5.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmake/modules/FindHDF5.cmake b/cmake/modules/FindHDF5.cmake index ec0bd63dee..6438e42592 100644 --- a/cmake/modules/FindHDF5.cmake +++ b/cmake/modules/FindHDF5.cmake @@ -28,7 +28,17 @@ SET_IF_EMPTY(HDF5_DIR "$ENV{HDF5_DIR}") # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) + +IF(NOT "${HDF5_DIR}" STREQUAL "") + SET(HDF5_ROOT "${HDF5_DIR}") +ENDIF() + +IF(DEAL_II_WITH_MPI) + SET(HDF5_PREFER_PARALLEL TRUE) +ENDIF() + FIND_PACKAGE(HDF5) + LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) IF(HDF5_FOUND) -- 2.39.5