From: navarrop Date: Mon, 21 Jun 2010 14:08:20 +0000 (+0000) Subject: Add DLL_STATIC flags. X-Git-Tag: v3_5~896 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7cbbcc84bfc001f55ede1336658d300e894a1fff Add DLL_STATIC flags. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7913 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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