summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-01-17 21:24:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-01-17 21:24:42 (GMT)
commit1120bb699089b0156ca0862a967a33e9d2426426 (patch)
tree72b9fb27c9a081e8d52108b8166badb171bf4a68 /Modules
parentdafd511199906506f4a84280de6359651da9b498 (diff)
parent87737e62e0e6f1bb3c54ea0052f2fc19ded16c15 (diff)
downloadCMake-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.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()