Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/poco/CONTROL
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 26 additions & 0 deletions ports/poco/fix_foundation_link.patch
Original file line number Diff line number Diff line change
@@ -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 {

1 change: 1 addition & 0 deletions ports/poco/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down