|
@@ -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>",
|