Tell gmxapi to look for MPI, when appropriate.
commit71c4a0fcaf0ed08e5e7164071b60261fae36e483
authorM. Eric Irrgang <ericirrgang@gmail.com>
Mon, 26 Oct 2020 14:07:21 +0000 (26 15:07 +0100)
committerAndrey Alekseenko <al42and@gmail.com>
Mon, 26 Oct 2020 15:39:17 +0000 (26 15:39 +0000)
tree3c3dcf9d1b381e6f0a95783fac42ed46924d9eba
parentf346b5269f7a8c63d233741ca299b70271ecb0ad
Tell gmxapi to look for MPI, when appropriate.

The recommended CMake configuration for MPI-enabled GROMACS does not
provide MPI compiler wrappers for regular compiler variables. However,
the MPI toolchain details do not get conveyed transitively through the
libgromacs target. This should be easily resolved by checking whether
libgromacs is built with MPI library support and, if so, using the
CMake FindMPI module.

This may not be robust and should be revisited in the context of issue
#3672.

Meanwhile, this change should reduce errors for users following the
documentation updated under #3671.
api/gmxapi/CMakeLists.txt