diff options
author | Brad King <brad.king@kitware.com> | 2021-01-05 14:02:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-01-05 14:03:08 (GMT) |
commit | 98084f902b1850a82c45e6dc818cc32e89c08e17 (patch) | |
tree | 39ae40ae6eb03c55a609ec55c61502211dda60b1 | |
parent | 522015e04f2fc22ba4e58ddf94fa035bc6dc9c85 (diff) | |
parent | a5b223aa7f946d774548bc22e7df6319ba6db134 (diff) | |
download | CMake-98084f902b1850a82c45e6dc818cc32e89c08e17.zip CMake-98084f902b1850a82c45e6dc818cc32e89c08e17.tar.gz CMake-98084f902b1850a82c45e6dc818cc32e89c08e17.tar.bz2 |
Merge topic 'FindMPI-oneapi-single-quotes'
a5b223aa7f FindMPI: remove single quotes from include path
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5654
-rw-r--r-- | Modules/FindMPI.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 19e6e57..8476823 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -653,6 +653,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() |