May I ask how you did this? For me it won't work.
I edited the vcpkg.json in the ports\sfml dir to
{
"name": "sfml",
"version": "2.5.1",
"port-version": 10,
"description": "Simple and fast multimedia library",
"homepage": "https://github.com/sfml/sfml",
"dependencies": [
"freetype",
"libflac",
"libogg",
"libvorbis",
"openal-soft",
"stb"
],
"builtin-baseline":"92af1ff59a651c1cf43aca48f54369a86d40d81c",
"overrides":[{"name":"sfml", "version":"2.10.0"}]
}
I got the value of builtin-baseline by doing
git rev-parse HEADThis didn't do anything for me: it still grabbed freetype version 2.11.0.
Then I edited vcpkg\versions\baseline.json and changed the baseline of freetype to 2.10.0 and I edited the vcpkg.json of freetype to also take 2.10.0:
"version-semver": "2.10.0",Now it SAYS that it takes 2.10.0. And vcpkg list says 2.10.0 for freetype. But the dll version is STILL 2.11.0 and drawing an sf::Text STILL crashes in freetype.
Maybe the easier way is to compile sfml with cmake and copy the freetype dll into the vcpkg\bin dir