Skip to content

Commit 00a00ce

Browse files
committed
findmpi template [skip ci]
1 parent 3345c8f commit 00a00ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/Modules/FindMPI.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ else()
115115
endif()
116116
endif()
117117

118+
string(REPLACE ";" " " _flags "${_flags}")
119+
118120
set(${outvar} ${_flags} PARENT_SCOPE)
119121

120122
endfunction(get_link_flags)
@@ -177,7 +179,7 @@ else()
177179
set(names mpi pmpi)
178180
endif()
179181

180-
if(NOT MPI_FOUND)
182+
if(NOT MPI_C_FOUND)
181183
pkg_search_module(pc_mpi_c ompi-c)
182184
endif()
183185

@@ -289,7 +291,7 @@ else()
289291
mpichcxx mpi pmpi)
290292
endif()
291293

292-
if(NOT MPI_FOUND)
294+
if(NOT MPI_CXX_FOUND)
293295
pkg_search_module(pc_mpi_cxx ompi-cxx)
294296
endif()
295297

@@ -403,7 +405,7 @@ else()
403405
)
404406
endif()
405407

406-
if(NOT MPI_FOUND)
408+
if(NOT MPI_Fortran_FOUND)
407409
pkg_search_module(pc_mpi_f ompi-fort)
408410
endif()
409411

0 commit comments

Comments
 (0)