summaryrefslogtreecommitdiff
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:31 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:31 +0900
commit7433c268f8cc770bf1cc0593fd15f26763033f81 (patch)
tree14f92d53a3cb823841e34dd18988db13f3ae242e /Modules/FindMPI.cmake
parente2f5ee91b89a80c7801baf3870845d7fe54b3dd7 (diff)
downloadcmake-7433c268f8cc770bf1cc0593fd15f26763033f81.tar.gz
cmake-7433c268f8cc770bf1cc0593fd15f26763033f81.tar.bz2
cmake-7433c268f8cc770bf1cc0593fd15f26763033f81.zip
Imported Upstream version 3.19.3upstream/3.19.3
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index b531e4740..789a72eb3 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -646,6 +646,7 @@ function (_MPI_interrogate_compiler LANG)
foreach(_MPI_INCLUDE_PATH IN LISTS MPI_ALL_INCLUDE_PATHS)
string(REGEX REPLACE "^ ?${_MPI_PREPROCESSOR_FLAG_REGEX}${CMAKE_INCLUDE_FLAG_${LANG}} *" "" _MPI_INCLUDE_PATH "${_MPI_INCLUDE_PATH}")
string(REPLACE "\"" "" _MPI_INCLUDE_PATH "${_MPI_INCLUDE_PATH}")
+ string(REPLACE "'" "" _MPI_INCLUDE_PATH "${_MPI_INCLUDE_PATH}")
get_filename_component(_MPI_INCLUDE_PATH "${_MPI_INCLUDE_PATH}" REALPATH)
list(APPEND MPI_INCLUDE_DIRS_WORK "${_MPI_INCLUDE_PATH}")
endforeach()