浏览代码

fix net config for poco (#5132)

xpxz 1 年之前
父节点
当前提交
eb8b1e2bee
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/p/poco/xmake.lua

+ 3 - 1
packages/p/poco/xmake.lua

@@ -72,7 +72,9 @@ package("poco")
         else
             package:add("deps", "pcre")
         end
-
+        if package:config("net") and package:is_plat("windows") then
+            package:add("syslinks", "ws2_32")
+        end
         if package:config("netssl") or package:config("crypto") or package:config("jwt") then
             package:add("deps", "openssl")
         end