summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-01-16 14:03:08 (GMT)
committerBrad King <brad.king@kitware.com>2012-01-16 14:03:08 (GMT)
commit87737e62e0e6f1bb3c54ea0052f2fc19ded16c15 (patch)
tree2a0fea56062d0364c3bc4f8d59fedb530e358a16 /Modules
parentc89ee4a10f4de32bdffaa1f08f5455f0fc454731 (diff)
downloadCMake-87737e62e0e6f1bb3c54ea0052f2fc19ded16c15.zip
CMake-87737e62e0e6f1bb3c54ea0052f2fc19ded16c15.tar.gz
CMake-87737e62e0e6f1bb3c54ea0052f2fc19ded16c15.tar.bz2
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>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMPI.cmake2
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()