Skip to content

Commit

Permalink
Request minimum 3.0 MPI version for MPI_CXX_* constants
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ImperatorS79 authored and ddemidov committed Mar 22, 2022
1 parent 14891c8 commit 5fc2ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5fc2ed8

Please sign in to comment.