diff options
| author | ShifftC <[email protected]> | 2023-12-01 18:31:24 +0100 |
|---|---|---|
| committer | ShifftC <[email protected]> | 2023-12-01 18:31:24 +0100 |
| commit | 3ceb269a042686b96d6e2d04fecf2606520ceba3 (patch) | |
| tree | 47c2afd13e8dc8999c76e1ce95871f27a7ae744c | |
| parent | 04f15ffea7ba45d06be9d0a69bad1e1e8509ccd0 (diff) | |
Fix visual studio startup project
Binary targets would always override default targets.
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_solution.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 2 |
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 ea2d8e1fa..bd86cbc7c 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua @@ -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 not 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 7ec79ad6e..4c82dbe93 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -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 not first_target:is_default() then table.insert(targetnames, 1, targetname) else table.insert(targetnames, targetname) |
