Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dfd141a837eecb8580d567878841acd5f21d4051
[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(NOT WIN32)
17   if(GFORTRAN_EXE)
18     message(STATUS "Found gfortran: ${GFORTRAN_EXE}")
19     set(SMPI_FORTRAN 1)
20   else()
21     message(STATUS "Looking for bin gfortran - not found")
22   endif()
23 else()
24   message(STATUS "SMPI Fortran is disabled on Windows platforms. Please contact the SimGrid team if you need it.")
25 endif()
26
27 if(NOT SMPI_FORTRAN)
28   message("-- Fortran support for smpi is disabled.")
29 endif()