Ensure C language when requiring MPI

This commit is contained in:
Kai Pastor 2024-11-02 17:33:18 +01:00
parent 8407b75a26
commit 395a1ba7ee

View File

@ -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 ()