Fix makefile/utility project toolset under vs2015 and vs2017

See: https://github.com/premake/premake-core/issues/480
This commit is contained in:
Dan Dunham 2017-09-22 21:58:47 -07:00 committed by Tom van Dijck
parent 9510d925ab
commit a3426c33a2

View File

@ -2050,7 +2050,7 @@
end end
if version then if version then
if cfg.kind == p.NONE or cfg.kind == p.MAKEFILE then if cfg.kind == p.NONE or cfg.kind == p.MAKEFILE then
if p.config.hasFile(cfg, path.iscppfile) then if p.config.hasFile(cfg, path.iscppfile) or _ACTION >= "vs2015" then
m.element("PlatformToolset", nil, version) m.element("PlatformToolset", nil, version)
end end
else else