X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1028bf295229d3a5c75a74b910ca34000d40bb79..85b2dce67ce8e0e1b4c68f6fbbf4d6f427bca3ff:/buildtools/Cmake/Modules/FindGFortran.cmake diff --git a/buildtools/Cmake/Modules/FindGFortran.cmake b/buildtools/Cmake/Modules/FindGFortran.cmake new file mode 100644 index 0000000000..b15409e561 --- /dev/null +++ b/buildtools/Cmake/Modules/FindGFortran.cmake @@ -0,0 +1,32 @@ +find_program(GFORTRAN_EXE + NAME gfortran + PATH_SUFFIXES bin/ + PATHS + /opt + /opt/local + /opt/csw + /sw + /usr + ) + +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(HAVE_MC) + message("-- Fortran 90 support for smpi is currently not compatible with model checking.") + else() + set(SMPI_F90 1) + endif() +endif() + +if(NOT SMPI_F90) + message("-- Fortran 90 support for smpi is disabled.") +endif()