]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Unconditionally require MPI for HDF5 13319/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 14:18:15 +0000 (08:18 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 14:18:15 +0000 (08:18 -0600)
cmake/configure/configure_hdf5.cmake
cmake/modules/FindHDF5.cmake

index d04c6fc8ec21ad2a4dc0b9b3d24346ad2147c6e5..ad99686e012566a40f1f66092954e45932af0789 100644 (file)
@@ -17,8 +17,7 @@
 # Configuration for the hdf5 library:
 #
 
-SET(FEATURE_HDF5_AFTER MPI)
-
+SET(FEATURE_HDF5_DEPENDS MPI)
 
 MACRO(FEATURE_HDF5_FIND_EXTERNAL var)
   FIND_PACKAGE(HDF5)
@@ -26,16 +25,13 @@ MACRO(FEATURE_HDF5_FIND_EXTERNAL var)
   IF(HDF5_FOUND)
     SET(${var} TRUE)
 
-    IF( (HDF5_IS_PARALLEL AND NOT DEAL_II_WITH_MPI) OR
-        (NOT HDF5_IS_PARALLEL AND DEAL_II_WITH_MPI) )
+    IF(NOT HDF5_IS_PARALLEL)
       MESSAGE(STATUS "Insufficient hdf5 installation found: "
-        "hdf5 has to be configured with the same MPI configuration as deal.II."
+        "hdf5 has to be configured with MPI support."
         )
       SET(HDF5_ADDITIONAL_ERROR_STRING
         "Insufficient hdf5 installation found!\n"
-        "hdf5 has to be configured with the same MPI configuration as deal.II, but found:\n"
-        "  DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI}\n"
-        "  HDF5_WITH_MPI    = ${HDF5_WITH_MPI}\n"
+        "hdf5 has to be configured with MPI support.\n"
         )
       SET(${var} FALSE)
     ENDIF()
index f92c4a15d4afe3a403e40f9f52a06147513fc3c3..76cfa8a786ab67c8a619df9035d73e30b55903a9 100644 (file)
@@ -33,10 +33,7 @@ IF(NOT "${HDF5_DIR}" STREQUAL "")
   SET(HDF5_ROOT "${HDF5_DIR}")
 ENDIF()
 
-IF(DEAL_II_WITH_MPI)
-  SET(HDF5_PREFER_PARALLEL TRUE)
-ENDIF()
-
+SET(HDF5_PREFER_PARALLEL TRUE)
 FIND_PACKAGE(HDF5)
 
 LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)

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.