From 5e47f0fde2261cc967e144b0c810a837d2d97bac Mon Sep 17 00:00:00 2001 From: bruneton Date: Tue, 23 Jul 2013 12:17:49 +0000 Subject: [PATCH] CMake: New macro SALOME_ADD_MPI_TO_HDF5() to overload HDF5 variables with MPI stuff when HDF5 was compiled parallel. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32c6de265..3a4f03942 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,9 @@ FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C) # Other KERNEL optionals: IF(SALOME_USE_MPI) FIND_PACKAGE(SalomeMPI REQUIRED) + IF(HDF5_IS_PARALLEL) + SALOME_ADD_MPI_TO_HDF5() + ENDIF() ENDIF() IF(NOT SALOME_LIGHT_ONLY) FIND_PACKAGE(SalomeOmniORB REQUIRED) -- 2.39.2