|
|
d53b5f |
From 31b8b28fedbf102740eebd7ff9148188ed00a26e Mon Sep 17 00:00:00 2001
|
|
|
d53b5f |
From: Robert Maynard <robert.maynard@kitware.com>
|
|
|
d53b5f |
Date: Tue, 20 Aug 2019 17:38:53 -0400
|
|
|
d53b5f |
Subject: [PATCH] FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS and
|
|
|
d53b5f |
MPI_<LANG>_COMPILE_OPTIONS
|
|
|
d53b5f |
|
|
|
d53b5f |
In commit e374b9f1eb (FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS as a
|
|
|
d53b5f |
command-line string, 2018-09-10, v3.12.3~6^2) we tried to restore the
|
|
|
d53b5f |
compile flags but accidentally inverted the arguments to `list(JOIN)`
|
|
|
d53b5f |
causing both `MPI_<LANG>_COMPILE_FLAGS` and `MPI_<LANG>_COMPILE_OPTIONS`
|
|
|
d53b5f |
to be empty.
|
|
|
d53b5f |
|
|
|
d53b5f |
Issue: #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 9471be8..2b9b20c 100644
|
|
|
d53b5f |
--- a/Modules/FindMPI.cmake
|
|
|
d53b5f |
+++ b/Modules/FindMPI.cmake
|
|
|
d53b5f |
@@ -1698,7 +1698,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 |
- list(JOIN MPI_${LANG}_COMPILE_FLAGS " " MPI_${LANG}_COMPILE_OPTIONS)
|
|
|
d53b5f |
+ list(JOIN MPI_${LANG}_COMPILE_OPTIONS " " MPI_${LANG}_COMPILE_FLAGS)
|
|
|
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 |
|