Blame SOURCES/0001-FindMPI-Restore-MPI_-LANG-_COMPILE_FLAGS-as-a-comman.patch

d53b5f
From e374b9f1ebae70ca4381588362d6d3418f832ea7 Mon Sep 17 00:00:00 2001
d53b5f
From: Brad King <brad.king@kitware.com>
d53b5f
Date: Mon, 10 Sep 2018 14:30:59 -0400
d53b5f
Subject: [PATCH] FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS as a command-line
d53b5f
 string
d53b5f
d53b5f
Refactoring in commit v3.10.0-rc1~103^2~2 (FindMPI: Modernization from
d53b5f
ground up, 2017-04-25) accidentally left this variable set as a copy of
d53b5f
the `;`-list in `MPI_<LANG>_COMPILE_OPTIONS`, but the flags variable is
d53b5f
documented as a command-line string.  Restore it now.
d53b5f
d53b5f
Fixes: #18349
d53b5f
---
d53b5f
 Modules/FindMPI.cmake | 2 +-
d53b5f
 1 file changed, 1 insertion(+), 1 deletion(-)
d53b5f
d53b5f
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
d53b5f
index 75c4441..bfcd876 100644
d53b5f
--- a/Modules/FindMPI.cmake
d53b5f
+++ b/Modules/FindMPI.cmake
d53b5f
@@ -1680,7 +1680,7 @@ foreach(LANG IN ITEMS C CXX Fortran)
d53b5f
     set(MPI_${LANG}_INCLUDE_PATH "${MPI_${LANG}_INCLUDE_DIRS}")
d53b5f
     unset(MPI_${LANG}_COMPILE_FLAGS)
d53b5f
     if(MPI_${LANG}_COMPILE_OPTIONS)
d53b5f
-      set(MPI_${LANG}_COMPILE_FLAGS "${MPI_${LANG}_COMPILE_OPTIONS}")
d53b5f
+      list(JOIN MPI_${LANG}_COMPILE_FLAGS " " MPI_${LANG}_COMPILE_OPTIONS)
d53b5f
     endif()
d53b5f
     if(MPI_${LANG}_COMPILE_DEFINITIONS)
d53b5f
       foreach(_MPI_DEF IN LISTS MPI_${LANG}_COMPILE_DEFINITIONS)
d53b5f
-- 
d53b5f
1.8.3.1
d53b5f