summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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