diff options
| author | ruki <[email protected]> | 2023-07-14 14:44:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-14 14:44:50 +0800 |
| commit | a7d08d7a56876a3692f9a0549d3386effd2dd477 (patch) | |
| tree | f8ba57d6308e1b4ce0142f2fae8d549e71f19bf5 | |
| parent | e246dae9b6b086a77afe28311e08d9eb7defc4b2 (diff) | |
| parent | a6a7d90f31f60cbdcb5a2317644643d14b9d8c0a (diff) | |
Merge pull request #3968 from xq114/dev
fix vs generator for cuda
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 2 |
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) |
