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

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