Commit c2639fa9 authored by Christoph Junghans's avatar Christoph Junghans Committed by GitHub

cmake: MPI_COMPILE_FLAGS -> MPI_CXX_COMPILE_FLAGS

parent 8c1b77e4
Pipeline #3401 passed with stages
in 37 minutes and 57 seconds
......@@ -287,7 +287,7 @@ endif(WITH_VALGRIND_INSTRUMENTATION)
find_package(MPI REQUIRED)
# Workaround for https://gitlab.kitware.com/cmake/cmake/issues/18349
foreach(_MPI_FLAG ${MPI_COMPILE_FLAGS})
foreach(_MPI_FLAG ${MPI_CXX_COMPILE_FLAGS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_MPI_FLAG}")
endforeach()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_LINK_FLAGS}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment