Improve C++ standard library version detection

This commit is contained in:
2023-02-17 23:19:10 +02:00
parent aa1a0ea4a2
commit eb364f51e0
2 changed files with 39 additions and 23 deletions

View File

@@ -28,7 +28,7 @@ namespace Flax.Build.Platforms
SystemIncludePaths.Add(includePath);
else
Log.Error($"Missing toolset header files location {includePath}");
var cppIncludePath = Path.Combine(includePath, "c++", ClangVersion.ToString());
var cppIncludePath = Path.Combine(includePath, "c++", LibStdCppVersion);
if (Directory.Exists(cppIncludePath))
SystemIncludePaths.Add(cppIncludePath);
else