summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs201x.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-16 09:31:17 +0800
committerruki <[email protected]>2021-11-16 09:31:17 +0800
commit8c67fe903098afed989fb9ba64881fb7267bca49 (patch)
treecb5e44fad986423d3221e6b6edf2a1a37b480dcc /xmake/plugins/project/vstudio/impl/vs201x.lua
parent6060388361136e757cc2e3f189ffdd1276b47993 (diff)
improve vs generator
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index 1db739f1d..d366649da 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -56,8 +56,7 @@ function _get_command_string(cmd)
if cmd.program then
local command = os.args(table.join(cmd.program, cmd.argv))
if opt and opt.curdir then
- command = "cd \"" .. opt.curdir .. "\"\n" .. command
- -- TODO cd oldir
+ command = string.format("pushd \"%s\"\n%s\npopd", opt.curdir, command)
end
return command
elseif kind == "cp" then