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

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