diff options
author | Brad King <brad.king@kitware.com> | 2018-09-10 18:30:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-10 18:33:29 (GMT) |
commit | e374b9f1ebae70ca4381588362d6d3418f832ea7 (patch) | |
tree | 983a4e483c64d76c25b65580d153e7e266909c19 /Modules/FindMPI.cmake | |
parent | f478fa633daeb1432805821adddc40730ffd283d (diff) | |
download | CMake-e374b9f1ebae70ca4381588362d6d3418f832ea7.zip CMake-e374b9f1ebae70ca4381588362d6d3418f832ea7.tar.gz CMake-e374b9f1ebae70ca4381588362d6d3418f832ea7.tar.bz2 |
FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS as a command-line string
Refactoring in commit v3.10.0-rc1~103^2~2 (FindMPI: Modernization from
ground up, 2017-04-25) accidentally left this variable set as a copy of
the `;`-list in `MPI_<LANG>_COMPILE_OPTIONS`, but the flags variable is
documented as a command-line string. Restore it now.
Fixes: #18349
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 75c4441..bfcd876 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1680,7 +1680,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) - set(MPI_${LANG}_COMPILE_FLAGS "${MPI_${LANG}_COMPILE_OPTIONS}") + list(JOIN MPI_${LANG}_COMPILE_FLAGS " " MPI_${LANG}_COMPILE_OPTIONS) endif() if(MPI_${LANG}_COMPILE_DEFINITIONS) foreach(_MPI_DEF IN LISTS MPI_${LANG}_COMPILE_DEFINITIONS) |