Commit e6eaf25c authored by Christian Pfeiffer's avatar Christian Pfeiffer

FindMPI: Strip quotes from include path and convert to CMake path format

parent 39bf93c8
Pipeline #43876 passed with stage
......@@ -326,6 +326,8 @@ function (interrogate_mpi_compiler lang try_libs)
foreach(IPATH ${MPI_ALL_INCLUDE_PATHS})
string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH})
string(REPLACE "//" "/" IPATH ${IPATH})
string(REPLACE "\"" "" IPATH ${IPATH})
file(TO_CMAKE_PATH "${IPATH}" IPATH)
list(APPEND MPI_INCLUDE_PATH_WORK ${IPATH})
endforeach()
......
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