diff --git a/frontends/sdl/Cargo.toml b/frontends/sdl/Cargo.toml index bf9b641bc614809c1e7db4c1b1b2dd74aaf125b6..870f8acb241537a897ca4657423bab6ce07519e8 100644 --- a/frontends/sdl/Cargo.toml +++ b/frontends/sdl/Cargo.toml @@ -11,8 +11,10 @@ edition = "2018" path = "../.." [dependencies.sdl2] -version = "0.35" -features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"] +sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"] } + +[target.'cfg(linux)'.dependencies] +sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "bundled"] } # If the vcpkg version of SDL2 does not work (eg: display not found error) # then try dynamic linking SDL2 using the following features