diff options
author | David Cole <david.cole@kitware.com> | 2012-01-17 21:24:42 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-01-17 21:24:42 (GMT) |
commit | 1120bb699089b0156ca0862a967a33e9d2426426 (patch) | |
tree | 72b9fb27c9a081e8d52108b8166badb171bf4a68 /Modules | |
parent | dafd511199906506f4a84280de6359651da9b498 (diff) | |
parent | 87737e62e0e6f1bb3c54ea0052f2fc19ded16c15 (diff) | |
download | CMake-1120bb699089b0156ca0862a967a33e9d2426426.zip CMake-1120bb699089b0156ca0862a967a33e9d2426426.tar.gz CMake-1120bb699089b0156ca0862a967a33e9d2426426.tar.bz2 |
Merge topic 'FindMPI-issue-12874'
87737e6 FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 250d8a6..1be4ccf 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -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() |