FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)

When we have no MPI compiler wrapper and search explicitly for the MPI
C++ library append it correctly to the list of libraries instead of
using a space.

Suggested-by: Mourad Boufarguine <bouffa@gmail.com>
This commit is contained in:
Brad King 2012-01-16 09:03:08 -05:00
parent c89ee4a10f
commit 87737e62e0
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ function (interrogate_mpi_compiler lang try_libs)
HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
PATH_SUFFIXES lib)
if (MPI_LIBRARIES_WORK AND MPI_LIB)
set(MPI_LIBRARIES_WORK "${MPI_LIBRARIES_WORK} ${MPI_LIB}")
list(APPEND MPI_LIBRARIES_WORK ${MPI_LIB})
endif()
endif()