Open
Description
Hello,
I have only gotten the following configuration to work
[dependencies]
sdl2 = { version = "0.37.0", features = ["use-vcpkg", "static-link", "mixer"], default-features = false}
[package.metadata.vcpkg]
dependencies = ["sdl2", "sdl2-mixer"]
git = "https://github.com/microsoft/vcpkg"
rev = "2024.12.16"
[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
If I do not specify "static-link", the build process fails because it can't find SDL.lib.
If I specify any other triplet (e.g. x64-windows
) and remove "static-link", the build process fails because it complains that sdl2 isn't installed under the x64-windows-static-md
triplet.
I am running cargo vcpkg build
in between changes and I can verify that SDL2 installs in whatever triplet I specify in Cargo.toml. It just doesn't appear as if that triplet is respected during the build process. It only responds to x64-windows-static-md
.
What can I look for to resolve this? It's very strange.
Metadata
Metadata
Assignees
Labels
No labels