summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-12-02 08:07:15 +0800
committerGitHub <[email protected]>2023-12-02 08:07:15 +0800
commit8fcc525666412aefa0457bf866922b8e97818ea8 (patch)
tree54042f8185346899e0312919fd689cd2732f7f65
parent04f15ffea7ba45d06be9d0a69bad1e1e8509ccd0 (diff)
parent37a707e12d226e3a5de0cd2afb7951bb5b9676ef (diff)
Merge pull request #4459 from ShifftC/dev
Fix visual studio startup project #4458
-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 ea2d8e1fa..82ede489a 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 first_target:get("default") ~= true 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..e992c1bd4 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 first_target:get("default") ~= true then
table.insert(targetnames, 1, targetname)
else
table.insert(targetnames, targetname)