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