summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
index c2cdb6e61..ffae2bd98 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -315,7 +315,8 @@ function _make_common_item(vcxprojfile, vsinfo, targetinfo, vcxprojdir)
vcxprojfile:enter("<ItemDefinitionGroup Condition=\"\'%$(Configuration)|%$(Platform)\'==\'%s|%s\'\">", targetinfo.mode, targetinfo.arch)
-- for linker?
- if targetinfo.kind == "binary" then
+ local target = targetinfo.target
+ if target:targetkind() == "binary" then
vcxprojfile:enter("<Link>")
-- make linker flags