From 5fc2ed80c0803279169f98a3f85a0bafc39beabf Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Tue, 22 Mar 2022 14:41:52 +0100 Subject: [PATCH] Request minimum 3.0 MPI version for MPI_CXX_* constants Otherwise, cmake might still use a pre-3.0 MPI implementation (for example MS-MPI), that could compile on c++, but will not support MPI_CXX_* constants that amgcl uses. You could still want to support pre-3.0 MPI implementations, but then you would need to prevent the use of `std::complex` and replace it with something more C like. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cb45582..327d5f99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,7 +174,7 @@ endif() #---------------------------------------------------------------------------- # Find MPI #---------------------------------------------------------------------------- -find_package(MPI) +find_package(MPI 3.0) if (MPI_CXX_FOUND) # Need this to comply with CMP004 policy: string(STRIP "${MPI_CXX_LINK_FLAGS}" MPI_CXX_LINK_FLAGS)