File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ include(${CMAKE_CURRENT_LIST_DIR}/openmpi.cmake)
1919
2020set (CMAKE_REQUIRED_LIBRARIES MPI::MPI_Fortran)
2121
22+ if (MPI_Fortran_HAVE_F08_MODULE)
23+ return ()
24+ endif ()
25+
2226# sometimes factory FindMPI.cmake doesn't define this
27+ message (CHECK_START "Checking for Fortran MPI-3 binding" )
2328check_source_compiles(Fortran
2429[=[
2530program test
@@ -32,6 +37,9 @@ end program
3237MPI_Fortran_HAVE_F08_MODULE
3338)
3439
35- if (NOT MPI_Fortran_HAVE_F08_MODULE)
36- message (FATAL_ERROR "Fortran MPI-3 binding not present." )
40+ if (MPI_Fortran_HAVE_F08_MODULE)
41+ message (CHECK_PASS "yes" )
42+ else ()
43+ message (CHECK_FAIL "no" )
44+ message (WARNING "MPI-3 Fortran module mpi_f08 not found, builds may fail." )
3745endif ()
You can’t perform that action at this time.
0 commit comments