cad85a
From 0480b1a5f6d18aee1430d7ebc7c1ae958f516d32 Mon Sep 17 00:00:00 2001
cad85a
From: Tom Stellard <tstellar@redhat.com>
cad85a
Date: Thu, 23 Jan 2020 09:05:01 -0800
cad85a
Subject: [PATCH] Remove usage of list(JOIN)
cad85a
cad85a
---
cad85a
 Modules/FindMPI.cmake | 5 ++++-
cad85a
 1 file changed, 4 insertions(+), 1 deletion(-)
cad85a
cad85a
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
cad85a
index 8632d7b..4816d6e 100644
cad85a
--- a/Modules/FindMPI.cmake
cad85a
+++ b/Modules/FindMPI.cmake
cad85a
@@ -1677,7 +1677,7 @@ foreach(LANG IN ITEMS C CXX Fortran)
cad85a
     set(MPI_${LANG}_INCLUDE_PATH "${MPI_${LANG}_INCLUDE_DIRS}")
cad85a
     unset(MPI_${LANG}_COMPILE_FLAGS)
cad85a
     if(MPI_${LANG}_COMPILE_OPTIONS)
cad85a
-      list(JOIN MPI_${LANG}_COMPILE_OPTIONS " " MPI_${LANG}_COMPILE_FLAGS)
cad85a
+      string(REPLACE ";" " " MPI_${LANG}_COMPILE_FLAGS "${MPI_${LANG}_COMPILE_OPTIONS}")
cad85a
     endif()
cad85a
     if(MPI_${LANG}_COMPILE_DEFINITIONS)
cad85a
       foreach(_MPI_DEF IN LISTS MPI_${LANG}_COMPILE_DEFINITIONS)
cad85a
-- 
cad85a
1.8.3.1
cad85a