Fix makefile/utility project toolset under vs2015 and vs2017
See: https://github.com/premake/premake-core/issues/480
This commit is contained in:
parent
9510d925ab
commit
a3426c33a2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user