From 819d0dd2801a71b6e040457b728bbd1b6e990860 Mon Sep 17 00:00:00 2001 From: Alain Miniussi Date: Tue, 29 Oct 2024 17:16:16 +0100 Subject: [PATCH] Restore OMPI_SKIP_MPICXX and MPICH_SKIP_MPICXX in config.hpp to help non cmake build. Guard them form previous definition to avoir spurious warnings. --- include/boost/mpi/config.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/boost/mpi/config.hpp b/include/boost/mpi/config.hpp index cbf264b..a22649a 100644 --- a/include/boost/mpi/config.hpp +++ b/include/boost/mpi/config.hpp @@ -13,6 +13,17 @@ #ifndef BOOST_MPI_CONFIG_HPP #define BOOST_MPI_CONFIG_HPP +#if !defined(MPICH_IGNORE_CXX_SEEK) +/* Force MPICH not to define SEEK_SET, SEEK_CUR, and SEEK_END, which + conflict with the versions in and . */ +# define MPICH_IGNORE_CXX_SEEK 1 +#endif + +#if !defined(OMPI_SKIP_MPICXX) +/* We do not want to link in the OpenMPI CXX stuff */ +# define OMPI_SKIP_MPICXX +#endif + #include #include