For MPI builds, CMake will first try to compile a sample MPI program.
authorRossen Apostolov <rossen@cbr.su.se>
Sat, 30 Oct 2010 17:27:54 +0000 (19:27 +0200)
committerRossen Apostolov <rossen@cbr.su.se>
Sat, 30 Oct 2010 17:27:54 +0000 (19:27 +0200)
commitb82fa316da3f1746bd07b6c1ea50863f4449b43a
treee82ec579d6c9fcbbe343ad65967bb8a00f64a4df
parent02dd4b31130b63f580f6da6156214f6611433819
For MPI builds, CMake will first try to compile a sample MPI program.

On some systems such as Cray the FindMPI.cmake module can't find the proper
libraries to link to. Therefore we now test whether the given C compiler
is an MPI wrapper and skip the rest of the tests.
Thanks to Roland Schulz for the patch.
cmake/FindMPI.cmake
cmake/TestMPI.c [new file with mode: 0644]
src/gmxlib/CMakeLists.txt