summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
index 10ddb8dbc..b81e3bed7 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -549,7 +549,7 @@ function _make_source_options_cuda(vcxprojfile, flags, opt)
-- make Warning
if flagstr:find("[%-/]W[1234]") then
- local wlevel = flagstr:find("[%-/](W[1234])")
+ local wlevel = flagstr:match("[%-/](W[1234])")
vcxprojfile:print("<Warning%s>%s</Warning>", condition, wlevel)
elseif flagstr:find("[%-/]Wall") then
vcxprojfile:print("<Warning%s>Wall</Warning>", condition)