mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-05 07:10:26 +00:00
FindMPI: Reset MPI_INCLUDE_PATH_WORK before use
This commit is contained in:
@@ -322,6 +322,8 @@ function (interrogate_mpi_compiler lang try_libs)
|
|||||||
|
|
||||||
# Extract include paths from compile command line
|
# Extract include paths from compile command line
|
||||||
string(REGEX MATCHALL "(^| )-I([^\" ]+|\"[^\"]+\")" MPI_ALL_INCLUDE_PATHS "${MPI_COMPILE_CMDLINE}")
|
string(REGEX MATCHALL "(^| )-I([^\" ]+|\"[^\"]+\")" MPI_ALL_INCLUDE_PATHS "${MPI_COMPILE_CMDLINE}")
|
||||||
|
set(MPI_INCLUDE_PATH_WORK)
|
||||||
|
|
||||||
foreach(IPATH ${MPI_ALL_INCLUDE_PATHS})
|
foreach(IPATH ${MPI_ALL_INCLUDE_PATHS})
|
||||||
string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH})
|
string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH})
|
||||||
string(REPLACE "//" "/" IPATH ${IPATH})
|
string(REPLACE "//" "/" IPATH ${IPATH})
|
||||||
|
|||||||
Reference in New Issue
Block a user