Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / buildtools / Cmake / Modules / FindGFortran.cmake
1 find_program(GFORTRAN_EXE
2   NAME gfortran
3   PATH_SUFFIXES bin/
4   PATHS
5   /opt
6   /opt/local
7   /opt/csw
8   /sw
9   /usr
10   )
11
12 mark_as_advanced(GFORTRAN_EXE)
13
14 message(STATUS "Looking for bin gfortran")
15 if(GFORTRAN_EXE)
16   message(STATUS "Found gfortran: ${GFORTRAN_EXE}")
17 else()
18   message(STATUS "Looking for bin gfortran - not found")
19 endif()
20
21 set(SMPI_F90 0)
22 if(GFORTRAN_EXE)
23   if(NOT SMPI_F2C)
24     message("-- Fortran 90 support for smpi also needs f2c.")
25   #elseif(HAVE_MC)
26   #  message("-- Fortran 90 support for smpi is currently not compatible with model checking.")
27   else()
28     set(SMPI_F90 1)
29   endif()
30 endif()
31
32 if(NOT SMPI_F90)
33   message("-- Fortran 90 support for smpi is disabled.")
34 endif()