summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-05 22:42:48 +0800
committerruki <[email protected]>2021-03-05 22:42:48 +0800
commit6ad24d9abe5b30d3b3c7dbf812afc558a10ecc08 (patch)
tree81116129f0209732ef4970627ad87c121d1652ec /xmake/plugins/project/vstudio/impl/vs201x_solution.lua
parent1e293d3a5f31afed5e4f78670d66b5b18ccc2608 (diff)
add is_static/is_shared
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x_solution.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_solution.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
index fdd948561..8b018a5d4 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_solution.lua
@@ -50,7 +50,7 @@ function _make_projects(slnfile, vsinfo)
-- @see https://github.com/xmake-io/xmake/issues/1249
if target:get("default") == true then
table.insert(targets, 1, target)
- elseif target:kind() == "binary" then
+ elseif target:is_binary() then
local first_target = targets[1]
if not first_target or first_target:get("default") ~= true then
table.insert(targets, 1, target)