[Poco] Add foundation library missing ipjlpapi.lib (#7169)

This commit is contained in:
Phoebe 2019-07-07 15:26:12 +08:00 committed by Phil Christensen
parent 465990716b
commit 832f431527
3 changed files with 28 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: poco
Version: 2.0.0-pre-2
Version: 2.0.0-pre-3
Build-Depends: expat, libpq, pcre, sqlite3, zlib
Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.
Homepage: https://github.com/pocoproject/poco

View File

@ -0,0 +1,26 @@
diff --git a/Foundation/src/Environment_WIN32.cpp b/Foundation/src/Environment_WIN32.cpp
index 3cca5c7..8ed1df2 100644
--- a/Foundation/src/Environment_WIN32.cpp
+++ b/Foundation/src/Environment_WIN32.cpp
@@ -23,7 +23,7 @@
#include <ws2ipdef.h>
#include <wincrypt.h>
#include <iphlpapi.h>
-
+#pragma comment(lib, "IPHLPAPI.lib")
namespace Poco {
diff --git a/Foundation/src/Environment_WINCE.cpp b/Foundation/src/Environment_WINCE.cpp
index 62f19bc..d409356 100644
--- a/Foundation/src/Environment_WINCE.cpp
+++ b/Foundation/src/Environment_WINCE.cpp
@@ -22,7 +22,7 @@
#include <cstring>
#include <windows.h>
#include <iphlpapi.h>
-
+#pragma comment(lib, "IPHLPAPI.lib")
namespace Poco {

View File

@ -19,6 +19,7 @@ vcpkg_from_github(
unbundled_pdf.patch
# Add the support of arm64-windows
arm64_pcre.patch
fix_foundation_link.patch
)
# define Poco linkage type