Skip to content

Commit 756bdda

Browse files
committed
imgui-sfml: use add_deps auto version resolution
1 parent 814f929 commit 756bdda

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/i/imgui-sfml/xmake.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ package("imgui-sfml")
3636
end)
3737

3838
on_install("macosx", "linux", "windows", "mingw", function (package)
39-
local imgui_dep = package:dep("imgui")
40-
local imgui_version = imgui_dep and " " .. imgui_dep:version_str() or ""
41-
io.writefile("xmake.lua", string.format([[
39+
io.writefile("xmake.lua", [[
4240
add_rules("mode.release", "mode.debug")
43-
add_requires("imgui%s")
41+
add_requires("imgui")
4442
if is_plat("linux") and is_kind("shared") then
4543
add_requires("sfml", {configs = {shared = true}})
4644
else
@@ -63,7 +61,7 @@ package("imgui-sfml")
6361
end
6462
add_rules("utils.install.pkgconfig_importfiles")
6563
add_rules("utils.install.cmake_importfiles")
66-
]], imgui_version))
64+
]])
6765
local configs = {}
6866
if package:config("shared") then
6967
configs.kind = "shared"

0 commit comments

Comments
 (0)