From 395a1ba7ee3bd4aa100463be3e847eb42061d1d5 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Sat, 2 Nov 2024 17:33:18 +0100 Subject: [PATCH] Ensure C language when requiring MPI --- config/cmake/hdf5-config.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in index b0909b9ac01..fa234734951 100644 --- a/config/cmake/hdf5-config.cmake.in +++ b/config/cmake/hdf5-config.cmake.in @@ -89,6 +89,7 @@ if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL) set (${HDF5_PACKAGE_NAME}_PARALLEL_FILTERED_WRITES @PARALLEL_FILTERED_WRITES@) set (${HDF5_PACKAGE_NAME}_LARGE_PARALLEL_IO @LARGE_PARALLEL_IO@) + enable_language(C) # for MPI::MPI_C find_package(MPI QUIET REQUIRED) endif ()