Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill f2c. Finally. I hope.
[simgrid.git] / buildtools / Cmake / Modules / FindGFortran.cmake
index ff01f17..4dada0d 100644 (file)
@@ -12,23 +12,14 @@ find_program(GFORTRAN_EXE
 mark_as_advanced(GFORTRAN_EXE)
 
 message(STATUS "Looking for bin gfortran")
+set(SMPI_FORTRAN 0)
 if(GFORTRAN_EXE)
   message(STATUS "Found gfortran: ${GFORTRAN_EXE}")
+  set(SMPI_FORTRAN 1)
 else()
   message(STATUS "Looking for bin gfortran - not found")
 endif()
 
-set(SMPI_F90 0)
-if(GFORTRAN_EXE)
-  if(NOT SMPI_F2C)
-    message("-- Fortran 90 support for smpi also needs f2c.")
-  #elseif(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.")
+if(NOT SMPI_FORTRAN)
+  message("-- Fortran support for smpi is disabled.")
 endif()