From 7cbbcc84bfc001f55ede1336658d300e894a1fff Mon Sep 17 00:00:00 2001 From: navarrop Date: Mon, 21 Jun 2010 14:08:20 +0000 Subject: [PATCH] Add DLL_STATIC flags. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7913 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/gras_config.h.in | 6 +++++- include/simgrid_config.h.in | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/buildtools/Cmake/gras_config.h.in b/buildtools/Cmake/gras_config.h.in index 1809e5f287..15a1e3579b 100644 --- a/buildtools/Cmake/gras_config.h.in +++ b/buildtools/Cmake/gras_config.h.in @@ -6,7 +6,11 @@ #ifdef _XBT_DLL_EXPORT #define DLL_EXPORT #else - #define DLL_IMPORT + #ifdef _XBT_DLL_STATIC + #define DLL_STATIC + #else + #define DLL_IMPORT + #endif #endif #ifndef __STRICT_ANSI__ diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index a1baeeef6b..0eb76a2cef 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -12,7 +12,11 @@ #ifdef _XBT_DLL_EXPORT #define DLL_EXPORT #else - #define DLL_IMPORT + #ifdef _XBT_DLL_STATIC + #define DLL_STATIC + #else + #define DLL_IMPORT + #endif #endif #cmakedefine _XBT_WIN32 @_XBT_WIN32@ //this variable is set if it is a windows platform -- 2.20.1