diff options
| author | Jérôme Leclercq <[email protected]> | 2021-12-12 14:27:31 +0100 |
|---|---|---|
| committer | Jérôme Leclercq <[email protected]> | 2021-12-12 14:27:31 +0100 |
| commit | faf3404c42491b7e1e1fa0ced8386321507f4c5c (patch) | |
| tree | 04f967ed1e3cb4d3431e0fba543ae9deddb3f389 | |
| parent | 3b0392340c94152238b2db03327415e553c44045 (diff) | |
project/vstudio: Fix Debugger rundir
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index fd14acbfe..b167468d7 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -213,13 +213,6 @@ function _make_configurations(vcxprojfile, vsinfo, target, vcxprojdir) vcxprojfile:leave("</PropertyGroup>") end - -- make Debugger - for _, targetinfo in ipairs(target.info) do - vcxprojfile:enter("<PropertyGroup Condition=\"\'%$(Configuration)|%$(Platform)\'==\'%s|%s\'\" Label=\"Debugger\">", targetinfo.mode, targetinfo.arch) - vcxprojfile:print("<LocalDebuggerWorkingDirectory>%s</LocalDebuggerWorkingDirectory>", targetinfo.rundir) - vcxprojfile:leave("</PropertyGroup>") - end - -- import Microsoft.Cpp.props vcxprojfile:print("<Import Project=\"%$(VCTargetsPath)\\Microsoft.Cpp.props\" />") @@ -250,6 +243,13 @@ function _make_configurations(vcxprojfile, vsinfo, target, vcxprojdir) end vcxprojfile:leave("</PropertyGroup>") end + + -- make Debugger + for _, targetinfo in ipairs(target.info) do + vcxprojfile:enter("<PropertyGroup Condition=\"\'%$(Configuration)|%$(Platform)\'==\'%s|%s\'\" Label=\"Debugger\">", targetinfo.mode, targetinfo.arch) + vcxprojfile:print("<LocalDebuggerWorkingDirectory>%s</LocalDebuggerWorkingDirectory>", targetinfo.rundir) + vcxprojfile:leave("</PropertyGroup>") + end end -- make source options |
