mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS and MPI_<LANG>_COMPILE_OPTIONS
In commit e374b9f1eb
(FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS as a
command-line string, 2018-09-10, v3.12.3~6^2) we tried to restore the
compile flags but accidentally inverted the arguments to `list(JOIN)`
causing both `MPI_<LANG>_COMPILE_FLAGS` and `MPI_<LANG>_COMPILE_OPTIONS`
to be empty.
Issue: #18349
This commit is contained in:
parent
40bbe50e23
commit
31b8b28fed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user