Skip to content

Commit 9a25b3c

Browse files
committed
Fix minor CMake string syntax issue
1 parent fbc6fe7 commit 9a25b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ get_filename_component( FTN_COMPILER_DIR "${CMAKE_Fortran_COMPILER}"
146146
get_filename_component( C_COMPILER_DIR "${CMAKE_C_COMPILER}"
147147
REALPATH )
148148

149-
if (FTN_COMPILER_NAME MATCHES '^[mM][pP][iI]')
149+
if (FTN_COMPILER_NAME MATCHES "^[mM][pP][iI]")
150150
set (MPI_Fortran_COMPILER "${CMAKE_Fortran_COMPILER}")
151151
endif()
152-
if (C_COMPILER_NAME MATCHES '^[mM][pP][iI]')
152+
if (C_COMPILER_NAME MATCHES "^[mM][pP][iI]")
153153
set (MPI_C_COMPILER "${CMAKE_C_COMPILER}")
154154
endif()
155155

0 commit comments

Comments
 (0)