Prevent building with SDL in unsupported platforms

This commit is contained in:
2024-07-28 18:31:25 +03:00
committed by Ari Vuollet
parent e759e128c7
commit 8e9171e9c3

View File

@@ -300,7 +300,8 @@ namespace Flax.Build
public static bool WithSDL(NativeCpp.BuildOptions options)
{
return UseSDL;
bool supportedPlatform = options.Platform.Target == TargetPlatform.Windows || options.Platform.Target == TargetPlatform.Linux;
return UseSDL && supportedPlatform;
}
}
}