]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: make the MPI compatibility check less strict 5690/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 12 Jan 2018 21:47:39 +0000 (15:47 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 12 Jan 2018 21:47:39 +0000 (15:47 -0600)
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

index ea041ddc79ec5b7869c9d9c73205443ea6319809..479cc55bd8e481c9f78cb1374d5098388781fa24 100644 (file)
@@ -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)
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.