diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-09-12 13:34:16 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-09-12 13:34:16 (GMT) |
commit | 1edc2f337f03dc24126e7ae25c22dfa347de281c (patch) | |
tree | 092760637d6d0ca841b36e3dfa48fe71d1329e6f /Modules/FindMPI.cmake | |
parent | 93b5bdb8b4e43251462f142f324240831bbfc267 (diff) | |
download | CMake-1edc2f337f03dc24126e7ae25c22dfa347de281c.zip CMake-1edc2f337f03dc24126e7ae25c22dfa347de281c.tar.gz CMake-1edc2f337f03dc24126e7ae25c22dfa347de281c.tar.bz2 |
FindMPI: match full language names when "simplifying"
There is no reason `CSharp` should go down this codepath (assuming it
ever gets here in the first place).
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 077aabd..d7dc6c1 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1131,7 +1131,7 @@ macro(_MPI_assemble_include_dirs LANG) ${MPI_${LANG}_COMPILER_INCLUDE_DIRS} ${MPI_${LANG}_ADDITIONAL_INCLUDE_DIRS} ) - if("${LANG}" MATCHES "(C|CXX)") + if("${LANG}" MATCHES "^(C|CXX)$") if(MPI_${LANG}_HEADER_DIR) list(APPEND MPI_${LANG}_INCLUDE_DIRS "${MPI_${LANG}_HEADER_DIR}") endif() @@ -1156,7 +1156,7 @@ macro(_MPI_split_include_dirs LANG) # We try to find the headers/modules among those paths (and system paths) # For C/C++, we just need to have a look for mpi.h. - if("${LANG}" MATCHES "(C|CXX)") + if("${LANG}" MATCHES "^(C|CXX)$") find_path(MPI_${LANG}_HEADER_DIR "mpi.h" HINTS ${MPI_${LANG}_COMPILER_INCLUDE_DIRS} |