Fix building engine with latest Windows platform toolset only

This commit is contained in:
Ari Vuollet
2021-02-20 18:52:24 +02:00
parent 09be8994e9
commit cd7642eeec
3 changed files with 11 additions and 6 deletions

View File

@@ -34,10 +34,12 @@ namespace Flax.Build.Platforms
return;
}
// Need v140 toolset
if (!GetToolsets().ContainsKey(WindowsPlatformToolset.v140))
// Need v140+ toolset
if (!GetToolsets().ContainsKey(WindowsPlatformToolset.v140) &&
!GetToolsets().ContainsKey(WindowsPlatformToolset.v141) &&
!GetToolsets().ContainsKey(WindowsPlatformToolset.v142))
{
Log.Warning("Missing MSVC toolset v140 (VS 2015 C++ build tools). Cannot build for Windows platform.");
Log.Warning("Missing MSVC toolset v140 or later (VS 2015 or later C++ build tools). Cannot build for Windows platform.");
_hasRequiredSDKsInstalled = false;
}
}