Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Support for F90 also needs f2c.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 7 Nov 2013 21:15:10 +0000 (22:15 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 7 Nov 2013 21:15:10 +0000 (22:15 +0100)
buildtools/Cmake/CompleteInFiles.cmake
buildtools/Cmake/Modules/FindGFortran.cmake

index 21f068f..16aff5c 100644 (file)
@@ -217,9 +217,9 @@ else()
   SET(MMALLOC_WANT_OVERRIDE_LEGACY 0)
 endif()
 
-# must come after having set HAVE_MC (FindGFortran uses it)
 if(enable_smpi)
   include(FindF2c)
+  # FindGFortran must come after FindF2C, and after having set HAVE_MC
   include(FindGFortran)
   SET(HAVE_SMPI 1)
 endif()
index b15409e..f034577 100644 (file)
@@ -20,7 +20,9 @@ endif()
 
 set(SMPI_F90 0)
 if(GFORTRAN_EXE)
-  if(HAVE_MC)
+  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)