From 6458373cba9ddfa1da21855dbc42da32728687e9 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 12 Jan 2018 15:47:39 -0600 Subject: [PATCH] CMake: make the MPI compatibility check less strict When configuring with CMake 3.10 and providing compiler wrappers, CC=mpicc CXX=mpicxx cmake ... the new FindMPI.cmake library does not export MPI_CXX_LIBRARIES and MPI_C_LIBRARIES any more. So, make the check less strict. --- cmake/macros/macro_check_mpi_interface.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/macro_check_mpi_interface.cmake b/cmake/macros/macro_check_mpi_interface.cmake index ea041ddc79..479cc55bd8 100644 --- a/cmake/macros/macro_check_mpi_interface.cmake +++ b/cmake/macros/macro_check_mpi_interface.cmake @@ -27,7 +27,7 @@ MACRO(CHECK_MPI_INTERFACE _feature _var) SET(_nope FALSE) FOREACH(_library ${${_feature}_LIBRARIES}) - IF( _library MATCHES "/libmpi(|_cxx)\\.(a|so)[^/]*$") + IF( _library MATCHES "/libmpi\\.(a|so)[^/]*$") GET_FILENAME_COMPONENT(_file1 ${_library} REALPATH) -- 2.39.5