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 fa976b34dc
commit 84b209ec7f

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