mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
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}
|
HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
|
||||||
PATH_SUFFIXES lib)
|
PATH_SUFFIXES lib)
|
||||||
if (MPI_LIBRARIES_WORK AND MPI_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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user