summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vsxmake/getinfo.lua
diff options
context:
space:
mode:
authorDomain <[email protected]>2022-06-05 01:31:44 +0800
committerDomain <[email protected]>2022-06-05 13:01:29 +0800
commit259e08de4b887f91e598f2d62f460c80633f48d9 (patch)
tree99ee228f536d77b3e40d8ddf6f8d823a27f8df43 /xmake/plugins/project/vsxmake/getinfo.lua
parentb19dec5ac1139bcf551165fd1838902bdaa449b8 (diff)
Non-default target can be built in vs
Diffstat (limited to 'xmake/plugins/project/vsxmake/getinfo.lua')
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index a64381cd0..26e066145 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -508,6 +508,7 @@ function main(outputdir, vsinfo)
local targetinfo = _make_targetinfo(mode, arch, target)
_target._targets[mode][arch] = targetinfo
_target.sdkver = targetinfo.sdkver
+ _target.default = targetinfo.default
-- save all sourcefiles and headerfiles
_target.sourcefiles = table.unique(table.join(_target.sourcefiles or {}, (target:sourcefiles())))