]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Put FindHDF5 hints back in place
authorMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 10:26:28 +0000 (04:26 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 10:38:48 +0000 (04:38 -0600)
cmake/modules/FindHDF5.cmake

index ec0bd63deef4d201a0c99b7bc7a8a6b9936f589e..6438e425927217e46b1762ef82139c9edab014e3 100644 (file)
@@ -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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.