summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)