Skip to content

Commit

Permalink
Merge pull request #4459 from ShifftC/dev
Browse files Browse the repository at this point in the history
Fix visual studio startup project #4458
  • Loading branch information
waruqi authored Dec 2, 2023
2 parents 04f15ff + 37a707e commit 8fcc525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmake/plugins/project/vstudio/impl/vs201x_solution.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,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:is_default() then
if not first_target or first_target:get("default") ~= true then
table.insert(targets, 1, target)
else
table.insert(targets, target)
Expand Down
2 changes: 1 addition & 1 deletion xmake/plugins/project/vsxmake/getinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,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:is_default() then
if not first_target or first_target:get("default") ~= true then
table.insert(targetnames, 1, targetname)
else
table.insert(targetnames, targetname)
Expand Down

0 comments on commit 8fcc525

Please sign in to comment.