summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-21 14:10:52 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-21 14:10:52 (GMT)
commit9182b3ce5346ca0779f93d2f0cc2fbe8a1868b63 (patch)
tree1c6b9dfea63bc86c2a771cf59e94ffa0b886b880 /Modules
parentfeec57e8001a2116434f48bb9628c100cd3b2c1a (diff)
parent31b8b28fedbf102740eebd7ff9148188ed00a26e (diff)
downloadCMake-9182b3ce5346ca0779f93d2f0cc2fbe8a1868b63.zip
CMake-9182b3ce5346ca0779f93d2f0cc2fbe8a1868b63.tar.gz
CMake-9182b3ce5346ca0779f93d2f0cc2fbe8a1868b63.tar.bz2
Merge branch 'FindMPI-restore-flag-vars' into release-3.15
Merge-request: !3710
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMPI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 9471be8..2b9b20c 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -1698,7 +1698,7 @@ foreach(LANG IN ITEMS C CXX Fortran)
set(MPI_${LANG}_INCLUDE_PATH "${MPI_${LANG}_INCLUDE_DIRS}")
unset(MPI_${LANG}_COMPILE_FLAGS)
if(MPI_${LANG}_COMPILE_OPTIONS)
- list(JOIN MPI_${LANG}_COMPILE_FLAGS " " MPI_${LANG}_COMPILE_OPTIONS)
+ list(JOIN MPI_${LANG}_COMPILE_OPTIONS " " MPI_${LANG}_COMPILE_FLAGS)
endif()
if(MPI_${LANG}_COMPILE_DEFINITIONS)
foreach(_MPI_DEF IN LISTS MPI_${LANG}_COMPILE_DEFINITIONS)