X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ca45e4b2a14e1c6e42983326020e388883f7d2f..ccedb07575381e28a3143247e9028fe4f73bcd96:/buildtools/Cmake/Modules/FindF2c.cmake diff --git a/buildtools/Cmake/Modules/FindF2c.cmake b/buildtools/Cmake/Modules/FindF2c.cmake index 7ccb9cdb8d..bef6bbc9c5 100644 --- a/buildtools/Cmake/Modules/FindF2c.cmake +++ b/buildtools/Cmake/Modules/FindF2c.cmake @@ -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