浏览代码

update hiredis to 1.1.0 (#2012)

fantasy-peak 2 年之前
父节点
当前提交
1b3a26a731
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/h/hiredis/xmake.lua

+ 2 - 1
packages/h/hiredis/xmake.lua

@@ -7,6 +7,7 @@ package("hiredis")
     add_urls("https://github.com/redis/hiredis/archive/refs/tags/$(version).tar.gz",
              "https://github.com/redis/hiredis.git")
     add_versions('v1.0.2', 'e0ab696e2f07deb4252dda45b703d09854e53b9703c7d52182ce5a22616c3819')
+    add_versions('v1.1.0', 'fe6d21741ec7f3fc9df409d921f47dfc73a4d8ff64f4ac6f1d95f951bf7f53d6')
 
     if is_plat("windows", "mingw") then
         add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
@@ -24,7 +25,7 @@ package("hiredis")
     end)
 
     on_install(function (package)
-        if package:version():eq("v1.0.2") then
+        if package:version():eq("v1.0.2") or package:version():eq("v1.1.0") then
             io.replace("CMakeLists.txt",
                 "TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:.>",
                 "TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include>",