Skip to content

Instantly share code, notes, and snippets.

@LegalizeAdulthood
Last active April 2, 2025 21:48
Show Gist options
  • Save LegalizeAdulthood/35b9b2d993106180a7dcfca5b18db42d to your computer and use it in GitHub Desktop.
Save LegalizeAdulthood/35b9b2d993106180a7dcfca5b18db42d to your computer and use it in GitHub Desktop.
Simple vcpkg overlay setup

Simple vcpkg Overlay Ports Setup

The file vcpkg-configuration.json uses an existing vcpkg as the default registry; this assumes vcpkg as a git submodule. The baseline value is the commit hash of the vcpkg submodule. Update the hash as needed to reflect the actual version of the vcpkg registry you've got checked out as a submodule.

Overlay Ports

Use a directory vcpkg-overlays to contain the overlay ports; this is a sibling to the vcpkg submodule directory.

Create a subdirectory per port, with the subdirectory named after the port. This can either override a port from the default registry or it can be a new port that isn't in the default registry.

{
"default-registry": {
"kind": "builtin",
"baseline": "ac4c628d2045500b3b6d0e6c1d7eea78d0eca4f6"
},
"overlay-ports": [
"vcpkg-overlays"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment