diff options
author | Jose <jose@zeroc.com> | 2014-10-08 01:07:13 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-10-08 01:07:13 +0200 |
commit | 3a98e0453a7d8367e478eff8c742b14835da7603 (patch) | |
tree | bfeb6335ccc9d0b0ef99118e49812e5f7459e305 /cpp/include/IceSSL/Plugin.h | |
parent | Windows thirdparty distribution updates (diff) | |
download | ice-3a98e0453a7d8367e478eff8c742b14835da7603.tar.bz2 ice-3a98e0453a7d8367e478eff8c742b14835da7603.tar.xz ice-3a98e0453a7d8367e478eff8c742b14835da7603.zip |
Several Windows build fixes:
ICE-3420 - Force link failure for debug/release mismatch?
Update VS add-in to not add C++ libraries
Fixed WinRT builds
Fixed Python Windows builds
Diffstat (limited to 'cpp/include/IceSSL/Plugin.h')
-rw-r--r-- | cpp/include/IceSSL/Plugin.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/include/IceSSL/Plugin.h b/cpp/include/IceSSL/Plugin.h index 743918ea755..ed4b0b91ec7 100644 --- a/cpp/include/IceSSL/Plugin.h +++ b/cpp/include/IceSSL/Plugin.h @@ -18,6 +18,21 @@ #include <vector> #include <list> +// +// Automatically link IceSSL[D].lib with Visual C++ +// +#ifdef _MSC_VER +# if defined(ICE_STATIC_LIBS) +# error("IceSSL Plugin does not support static libraries") +# elif !defined(ICE_SSL_API_EXPORTS) +# if defined(_DEBUG) +# pragma comment(lib, "IceSSLD.lib") +# else +# pragma comment(lib, "IceSSL.lib") +# endif +# endif +#endif + // For struct sockaddr_storage #ifdef _WIN32 # include <winsock2.h> |