diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2017-02-01 17:45:13 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2017-02-01 17:45:13 (GMT) |
commit | 93f29be2316f51f1d27fb543f92911be5b9cec9e (patch) | |
tree | 6b36e94094f4555e9adfdbf9b80a770a17df6e51 /Modules | |
parent | 7b4514fb33cf256ef165b2b28ba4affd1930a957 (diff) | |
download | CMake-93f29be2316f51f1d27fb543f92911be5b9cec9e.zip CMake-93f29be2316f51f1d27fb543f92911be5b9cec9e.tar.gz CMake-93f29be2316f51f1d27fb543f92911be5b9cec9e.tar.bz2 |
FindMPI: Reset MPI_INCLUDE_PATH_WORK before use
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 842acef..9cc7cab 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -322,6 +322,8 @@ function (interrogate_mpi_compiler lang try_libs) # Extract include paths from compile command line string(REGEX MATCHALL "(^| )-I([^\" ]+|\"[^\"]+\")" MPI_ALL_INCLUDE_PATHS "${MPI_COMPILE_CMDLINE}") + set(MPI_INCLUDE_PATH_WORK) + foreach(IPATH ${MPI_ALL_INCLUDE_PATHS}) string(REGEX REPLACE "^ ?-I" "" IPATH ${IPATH}) string(REPLACE "//" "/" IPATH ${IPATH}) |