File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ else()
115115 endif ()
116116endif ()
117117
118+ string (REPLACE ";" " " _flags "${_flags} " )
119+
118120set (${outvar} ${_flags} PARENT_SCOPE)
119121
120122endfunction (get_link_flags)
@@ -177,7 +179,7 @@ else()
177179 set (names mpi pmpi)
178180endif ()
179181
180- if (NOT MPI_FOUND )
182+ if (NOT MPI_C_FOUND )
181183 pkg_search_module(pc_mpi_c ompi-c)
182184endif ()
183185
@@ -289,7 +291,7 @@ else()
289291 mpichcxx mpi pmpi)
290292endif ()
291293
292- if (NOT MPI_FOUND )
294+ if (NOT MPI_CXX_FOUND )
293295 pkg_search_module(pc_mpi_cxx ompi-cxx)
294296endif ()
295297
@@ -403,7 +405,7 @@ else()
403405 )
404406endif ()
405407
406- if (NOT MPI_FOUND )
408+ if (NOT MPI_Fortran_FOUND )
407409 pkg_search_module(pc_mpi_f ompi-fort)
408410endif ()
409411
You can’t perform that action at this time.
0 commit comments