From: Michael Schlottke-Lakemper Date: Mon, 20 Mar 2023 14:31:30 +0000 (+0100) Subject: Remove obsolete CMake test for `MPI_SEEK_SET` X-Git-Tag: v9.5.0-rc1~449^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14923%2Fhead;p=dealii.git Remove obsolete CMake test for `MPI_SEEK_SET` --- diff --git a/cmake/configure/configure_10_mpi.cmake b/cmake/configure/configure_10_mpi.cmake index 3b2c1df1cf..d1975e31d3 100644 --- a/cmake/configure/configure_10_mpi.cmake +++ b/cmake/configure/configure_10_mpi.cmake @@ -30,15 +30,6 @@ macro(feature_mpi_find_external var) if(MPI_FOUND) set(${var} TRUE) - if(NOT MPI_HAVE_MPI_SEEK_SET) - message(STATUS - "Could not find a sufficient MPI version: " - "Your MPI implementation must define MPI_SEEK_SET.") - set(MPI_ADDITIONAL_ERROR_STRING - "Your MPI implementation must define MPI_SEEK_SET.\n") - set(${var} FALSE) - endif() - if(MPI_VERSION VERSION_LESS "3.0") message(STATUS "Could not find a sufficient MPI version: " diff --git a/cmake/modules/FindDEAL_II_MPI.cmake b/cmake/modules/FindDEAL_II_MPI.cmake index 7099787697..48a364dd8b 100644 --- a/cmake/modules/FindDEAL_II_MPI.cmake +++ b/cmake/modules/FindDEAL_II_MPI.cmake @@ -25,7 +25,6 @@ # MPI_VERSION_MAJOR # MPI_VERSION_MINOR # OMPI_VERSION -# MPI_HAVE_MPI_SEEK_SET # # @@ -52,28 +51,6 @@ endif() find_package(MPI) -# -# Older versions of MPI may not have MPI_SEEK_SET, which we -# require. Strangely, unlike MPICH, OpenMPI needs the correct link libraries -# for this to compile, not *just* the correct include directories. -# - -clear_cmake_required() -set(CMAKE_REQUIRED_FLAGS ${DEAL_II_CXX_FLAGS_SAVED} ${MPI_CXX_COMPILE_FLAGS} ${MPI_CXX_LINK_FLAGS}) -set(CMAKE_REQUIRED_INCLUDES ${MPI_CXX_INCLUDE_PATH}) -set(CMAKE_REQUIRED_LIBRARIES ${DEAL_II_LINKER_FLAGS_SAVED} ${MPI_LIBRARIES}) -CHECK_CXX_SOURCE_COMPILES( - " - #include - #ifndef MPI_SEEK_SET - # error - #endif - int main() {} - " - MPI_HAVE_MPI_SEEK_SET - ) -reset_cmake_required() - # # Newer versions of FindMPI.cmake only populate MPI_CXX_* (and MPI_C_*, # MPI_Fortran_*) variables. Let's rename these version names @@ -179,5 +156,4 @@ process_feature(MPI MPI_LIB MPI_LIBRARY MPI_MPI_H - MPI_HAVE_MPI_SEEK_SET )