Merge topic 'FindMPI-issue-12874'

87737e6 FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)
This commit is contained in:
David Cole 2012-01-17 16:24:42 -05:00 committed by CMake Topic Stage
commit 1120bb6990
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()