diff options
Diffstat (limited to 'cpp/include/Ice/Config.h')
-rw-r--r-- | cpp/include/Ice/Config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/include/Ice/Config.h b/cpp/include/Ice/Config.h index e0c63f79bd0..91e75030aa8 100644 --- a/cpp/include/Ice/Config.h +++ b/cpp/include/Ice/Config.h @@ -33,6 +33,21 @@ #endif // +// Automatically link Ice[D].lib with Visual C++ +// +#ifdef _MSC_VER +# if defined(ICE_STATIC_LIBS) +# pragma comment(lib, "Ice.lib") +# elif !defined(ICE_API_EXPORTS) +# if defined(_DEBUG) +# pragma comment(lib, "IceD.lib") +# else +# pragma comment(lib, "Ice.lib") +# endif +# endif +#endif + +// // Define the Ice and IceInternal namespace, so that we can use the following // everywhere in our code: // |