From e7bd86a9b641c9ecd9cc0d6feb842ca342440279 Mon Sep 17 00:00:00 2001 From: Navarrop Date: Mon, 28 Nov 2011 18:20:14 +0100 Subject: [PATCH] Need to know if have smpi when compiling --- buildtools/Cmake/CompleteInFiles.cmake | 3 +++ buildtools/Cmake/gras_config.h.in | 3 +++ 2 files changed, 6 insertions(+) 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@ -- 2.20.1