summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-09 22:47:29 +0800
committerruki <[email protected]>2021-03-09 22:47:29 +0800
commitfb8bf856a446630dffa2e686fa35f428aad77670 (patch)
treea195b11a347675a671a629d5d18b40a8d7ef14c1 /xmake/plugins
parent202981361d27bcf8fbce8d47d11a9490853bd1e0 (diff)
improve vsxmake
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_solution.lua2
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
index 8b018a5d4..c4628190f 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
@@ -52,7 +52,7 @@ function _make_projects(slnfile, vsinfo)
table.insert(targets, 1, target)
elseif target:is_binary() then
local first_target = targets[1]
- if not first_target or first_target:get("default") ~= true then
+ if not first_target or first_target:is_default() then
table.insert(targets, 1, target)
else
table.insert(targets, target)
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index f2d54fdfe..d00c5d344 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -474,7 +474,7 @@ function main(outputdir, vsinfo)
table.insert(targetnames, 1, targetname)
elseif target:is_binary() then
local first_target = targetnames[1] and project.target(targetnames[1])
- if not first_target or first_target:get("default") ~= true then
+ if not first_target or first_target:is_default() then
table.insert(targetnames, 1, targetname)
else
table.insert(targetnames, targetname)