Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not fail when building smpi without f2c, as it is now possible
authorAugustin Degomme <degomme@idpann.imag.fr>
Wed, 31 Oct 2012 14:50:39 +0000 (15:50 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Wed, 31 Oct 2012 14:50:39 +0000 (15:50 +0100)
buildtools/Cmake/Modules/FindF2c.cmake

index 69e519f..81cffee 100644 (file)
@@ -66,11 +66,7 @@ mark_as_advanced(HAVE_F2C_LIB)
 if(HAVE_F2C_H)
   include_directories(${HAVE_F2C_H})
 else()
 if(HAVE_F2C_H)
   include_directories(${HAVE_F2C_H})
 else()
-  if(WIN32)
     message("-- Fortran for smpi is not installed (http://www.netlib.org/f2c/).")
     message("-- Fortran for smpi is not installed (http://www.netlib.org/f2c/).")
-  else()
-    message(FATAL_ERROR "You should install f2c before use smpi.")
-  endif()
 endif()
 
 set(SMPI_F2C 0)
 endif()
 
 set(SMPI_F2C 0)