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