Merge topic 'FindMPI-issue-12874'
87737e6
FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)
This commit is contained in:
commit
1120bb6990
|
@ -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