diff --git a/Source/Tools/Flax.Build/Configuration.cs b/Source/Tools/Flax.Build/Configuration.cs index 97e3b2b70..d78163e2e 100644 --- a/Source/Tools/Flax.Build/Configuration.cs +++ b/Source/Tools/Flax.Build/Configuration.cs @@ -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; } } }