summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-01-23 16:21:47 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-01-23 16:30:45 (GMT)
commite6eaf25c3a74c6d075178e309cb0eea8d894698a (patch)
tree811abb05b2bc8acab468de2b7ea75e3e4cf0b59d
parent39bf93c897626130177d57e6813cbe46b35c4972 (diff)
downloadCMake-e6eaf25c3a74c6d075178e309cb0eea8d894698a.zip
CMake-e6eaf25c3a74c6d075178e309cb0eea8d894698a.tar.gz
CMake-e6eaf25c3a74c6d075178e309cb0eea8d894698a.tar.bz2
FindMPI: Strip quotes from include path and convert to CMake path format
-rw-r--r--Modules/FindMPI.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 4613ec4..e91a6a9 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -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()