From b8ad684fab0d29b7d05523b39646312815a7bf83 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 28 Feb 2022 05:03:29 -0600 Subject: [PATCH] CMake: require MPI 3.0 --- cmake/configure/configure_1_mpi.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/configure/configure_1_mpi.cmake b/cmake/configure/configure_1_mpi.cmake index 07f1897fc8..4f1d6aad89 100644 --- a/cmake/configure/configure_1_mpi.cmake +++ b/cmake/configure/configure_1_mpi.cmake @@ -39,6 +39,15 @@ MACRO(FEATURE_MPI_FIND_EXTERNAL var) SET(${var} FALSE) ENDIF() + IF(MPI_VERSION VERSION_LESS "3.0") + MESSAGE(STATUS + "Could not find a sufficient MPI version: " + "Your MPI implementation does not support the MPI 3.0 standard.") + SET(MPI_ADDITIONAL_ERROR_STRING + "Your MPI implementation does not support the MPI 3.0 standard.\n") + SET(${var} FALSE) + ENDIF() + ENDIF() ENDMACRO() -- 2.39.5