summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-28 15:36:40 +0800
committerGitHub <[email protected]>2022-02-28 15:36:40 +0800
commit0b293280a6b695b1dee8f258de9c79172d2527bf (patch)
treeada3908b55b471cbc01343fef25d1a2e1a83b008
parentc63944eb75b9af3fbcea3fc1035a695c033cb675 (diff)
Update install.lua
-rw-r--r--xmake/modules/private/xrepo/action/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index 4dd21ca07..2f3e84969 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -133,7 +133,7 @@ function _install_packages(packages)
end
if packagefile then
assert(os.isfile("xmake.lua"), "xmake.lua not found!")
- io.writefile("xmake.lua", "includes(\"" .. packagefile .. "\")\n" .. io.readfile("xmake.lua"))
+ io.writefile("xmake.lua", ('includes("%s")\ntarget("test", {kind = "phony"})'):format((packagefile:gsub("\\", "/")))
end
-- disable xmake-stats