summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs201x.lua
diff options
context:
space:
mode:
author夕伽 <[email protected]>2018-09-03 08:26:50 +0800
committer夕伽 <[email protected]>2018-09-03 08:26:50 +0800
commit8e286dbab27c3f592f8379185c43ca0cc930d34f (patch)
treef5496eece3ee64b3fc5892e51fbddeca6fb7f4fb /xmake/plugins/project/vstudio/impl/vs201x.lua
parent90786f2a568f3063907f4566d910da1ceae74194 (diff)
1 string.lower(xxx) -> xxx:lower()
2 -DUNICODE -> [%-|/]DUNICODE
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index bcdd45ddd..8671ea508 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -97,7 +97,7 @@ function _make_targetinfo(mode, arch, target)
targetinfo.mfc = ifelse(target:values("mfc"), "Dynamic", nil)
-- set unicode and mfc
for _, flag in pairs(firstcompflags) do
- if flag:find("-DUNICODE") then
+ if flag:find("[%-|/]DUNICODE") then
targetinfo.unicode = true
elseif flag:find("[%-|/]MT") then
targetinfo.mfc = ifelse(targetinfo.mfc, "Static", false)