X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/33f834e990aa41d6010af772e05a52bd27a66c88..7775a10cef19eac54cb9e962f39bebdd5d8a6699:/buildtools/Cmake/Modules/FindGFortran.cmake diff --git a/buildtools/Cmake/Modules/FindGFortran.cmake b/buildtools/Cmake/Modules/FindGFortran.cmake index f034577fc5..1369d64bd1 100644 --- a/buildtools/Cmake/Modules/FindGFortran.cmake +++ b/buildtools/Cmake/Modules/FindGFortran.cmake @@ -12,23 +12,18 @@ find_program(GFORTRAN_EXE mark_as_advanced(GFORTRAN_EXE) message(STATUS "Looking for bin gfortran") -if(GFORTRAN_EXE) - message(STATUS "Found gfortran: ${GFORTRAN_EXE}") -else() - message(STATUS "Looking for bin gfortran - not found") -endif() - -set(SMPI_F90 0) -if(GFORTRAN_EXE) - if(NOT SMPI_F2C) - message("-- Fortran 90 support for smpi also needs f2c.") - elseif(HAVE_MC) - message("-- Fortran 90 support for smpi is currently not compatible with model checking.") +set(SMPI_FORTRAN 0) +if(NOT WIN32 AND NOT APPLE) + if(GFORTRAN_EXE) + message(STATUS "Found gfortran: ${GFORTRAN_EXE}") + set(SMPI_FORTRAN 1) else() - set(SMPI_F90 1) + message(STATUS "Looking for bin gfortran - not found") endif() +else() + message(STATUS "SMPI Fortran is disabled on Windows and MacOS platforms. Please contact the SimGrid team if you need it.") endif() -if(NOT SMPI_F90) - message("-- Fortran 90 support for smpi is disabled.") +if(NOT SMPI_FORTRAN) + message("-- Fortran support for smpi is disabled.") endif()