summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2025-06-03 00:41:00 +0800
committerruki <[email protected]>2025-06-03 00:41:00 +0800
commitb975efbeb8091ee9e6ff10bd3a55a58cde80ff7c (patch)
treeecda13a070a5038d69943a05f39343668173bc9b /xmake/plugins
parent1df3b5ed4d4bec078a44ade91a8603ba375d0577 (diff)
add multiversion vsxmake policy #6519
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index ae69fbb58..f8871af24 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -393,7 +393,11 @@ function main(outputdir, vsinfo)
local oldir = os.cd(project.directory())
-- init solution directory
- vsinfo.solution_dir = path.absolute(path.join(outputdir, "vsxmake" .. vsinfo.vstudio_version))
+ if project.policy("generator.vsxmake.multiversion") then
+ vsinfo.solution_dir = path.absolute(path.join(outputdir, "vsxmake" .. vsinfo.vstudio_version))
+ else
+ vsinfo.solution_dir = path.absolute(outputdir)
+ end
vsinfo.programdir = _make_dirs(xmake.programdir())
vsinfo.programfile = xmake.programfile()
vsinfo.projectdir = project.directory()