avoids warning LNK4010 when subsystem version is different then 5.01
@@ -53,7 +53,7 @@ function _get_toolset_ver(targetinfo, vsinfo)
-- for xp?
for _, flag in ipairs(targetinfo.linkflags) do
- if flag:lower():find("[%-/]subsystem:.-,5.01$") then
+ if flag:lower():find("^[%-/]subsystem:.-,5%.%d+$") then
toolset_ver = toolset_ver .. "_xp"
break
end
