From: Navarrop Date: Mon, 28 Nov 2011 17:20:14 +0000 (+0100) Subject: Need to know if have smpi when compiling X-Git-Tag: exp_20120216~237^2~36 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e7bd86a9b641c9ecd9cc0d6feb842ca342440279?hp=3ba776a0b24ad2f0575827ac58b99349ea98997d Need to know if have smpi when compiling --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index 1f422e1332..8a03a12b1a 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -75,6 +75,9 @@ if(enable_gtnets) endif(enable_gtnets) if(enable_smpi) include(FindF2c) + if(HAVE_F2C_H) + SET(HAVE_SMPI 1) + endif(HAVE_F2C_H) endif(enable_smpi) if(enable_lua) include(FindLua51Simgrid) diff --git a/buildtools/Cmake/gras_config.h.in b/buildtools/Cmake/gras_config.h.in index 9fa4ca4ea5..73e425771b 100644 --- a/buildtools/Cmake/gras_config.h.in +++ b/buildtools/Cmake/gras_config.h.in @@ -146,6 +146,9 @@ /* Indicates that we have GTNETS support */ #cmakedefine HAVE_GTNETS @HAVE_GTNETS@ +/* Indicates that we have SMPI support */ +#cmakedefine HAVE_SMPI @HAVE_SMPI@ + /* Indicates that we have NS3 support */ #cmakedefine HAVE_NS3 @HAVE_NS3@