Skip to content

FindMPI: remove single quotes from include path

Eduard Valeyev requested to merge evaleev/cmake:evaleev/fix/issue-21634 into master

Intel OneAPI's MPI wraps include paths into single quotes, e.g.:

$ mpiicc -show
icc -I'/opt/intel/oneapi/mpi/2021.1.1/include' -L'/opt/intel/oneapi/mpi/2021.1.1/lib/release' -L'/opt/intel/oneapi/mpi/2021.1.1/lib' -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker '/opt/intel/oneapi/mpi/2021.1.1/lib/release' -Xlinker -rpath -Xlinker '/opt/intel/oneapi/mpi/2021.1.1/lib' -lmpifort -lmpi -ldl -lrt -lpthread

This merge request removes single quotes when sanitizing _MPI_INCLUDE_PATH.

Fixes: #21634 (closed)
Backport: release
Topic-rename: FindMPI-oneapi-single-quotes

Edited by Brad King

Merge request reports

Loading