Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill f2c. Finally. I hope.
[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 set(SMPI_FORTRAN 0)
16 if(GFORTRAN_EXE)
17   message(STATUS "Found gfortran: ${GFORTRAN_EXE}")
18   set(SMPI_FORTRAN 1)
19 else()
20   message(STATUS "Looking for bin gfortran - not found")
21 endif()
22
23 if(NOT SMPI_FORTRAN)
24   message("-- Fortran support for smpi is disabled.")
25 endif()