Browse Source

improve protobuf-c

ruki 6 years ago
parent
commit
f8a6ae21af
1 changed files with 6 additions and 2 deletions
  1. 6 2
      packages/p/protobuf-c/xmake.lua

+ 6 - 2
packages/p/protobuf-c/xmake.lua

@@ -16,12 +16,16 @@ package("protobuf-c")
         add_deps("cmake")
         add_deps("cmake")
     end
     end
 
 
-    add_links("protobuf-c")
+    if is_plat("windows") then
+        add_links("libprotobuf-c")
+    else
+        add_links("protobuf-c")
+    end
 
 
     on_load(function (package)
     on_load(function (package)
         package:addenv("PATH", "bin")
         package:addenv("PATH", "bin")
     end)
     end)
-
+ 
     on_install("windows", function (package)
     on_install("windows", function (package)
         os.cd("build-cmake")
         os.cd("build-cmake")
         import("package.tools.cmake").install(package)
         import("package.tools.cmake").install(package)