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:
parent
c89ee4a10f
commit
87737e62e0
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue