summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/WhatsAppWeb/WhatsAppWeb.vcxproj10
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp4
2 files changed, 14 insertions, 0 deletions
diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
index 279fcf8d90..c2ea6b1c8c 100644
--- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
+++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
@@ -33,6 +33,16 @@
<ProjectGuid>{13E796AD-BEA4-4213-A1B8-E18E2397E544}</ProjectGuid>
<ProjectName>WhatsAppWeb</ProjectName>
</PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='Win32'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
+ <VcpkgConfiguration>$(Configuration)</VcpkgConfiguration>
+ </PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='x64'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x64-windows-static-md</VcpkgTriplet>
+ <VcpkgConfiguration>$(Configuration)</VcpkgConfiguration>
+ </PropertyGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" />
</ImportGroup>
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index 98a3b3e886..b7a8a790ed 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -8,7 +8,11 @@ Copyright © 2019-22 George Hazan
#include "stdafx.h"
#include "version.h"
+#ifdef _DEBUG
+#pragma comment(lib, "libprotobufd.lib")
+#else
#pragma comment(lib, "libprotobuf.lib")
+#endif
CMPlugin g_plugin;