Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Look for gfortran before enabling support for smpif90.
[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(HAVE_MC)
24     message("-- Fortran 90 support for smpi is currently not compatible with model checking.")
25   else()
26     set(SMPI_F90 1)
27   endif()
28 endif()
29
30 if(NOT SMPI_F90)
31   message("-- Fortran 90 support for smpi is disabled.")
32 endif()