Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compil smpi on win32.
[simgrid.git] / buildtools / Cmake / Modules / FindF2c.cmake
index 7ccb9cd..bef6bbc 100644 (file)
@@ -63,5 +63,14 @@ mark_as_advanced(HAVE_F2C_LIB)
 if(HAVE_F2C_H)
   include_directories(${HAVE_F2C_H})
 else(HAVE_F2C_H)
-  message(FATAL_ERROR "You should install f2c before use smpi.")
-endif(HAVE_F2C_H)
\ No newline at end of file
+  if(WIN32)
+    message("-- Fortran for smpi is not installed (http://www.netlib.org/f2c/).")
+  else(WIN32)
+    message(FATAL_ERROR "You should install f2c before use smpi.")
+  endif(WIN32)
+endif(HAVE_F2C_H)
+
+set(SMPI_F2C 0)
+if(HAVE_F2C_H AND F2C_EXE AND HAVE_F2C_LIB)
+  set(SMPI_F2C 1)
+endif(HAVE_F2C_H AND F2C_EXE AND HAVE_F2C_LIB)
\ No newline at end of file