Prevent building with SDL in unsupported platforms

This commit is contained in:
2024-07-28 18:31:25 +03:00
parent 2bf7c16b07
commit c91f37e7e4

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