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 670f2ee2b0
commit 5df1f32305

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;
}
}
}