vcpkg: a C/C++ package manager for CMake, MSBuild, and everything in between

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

C++ developers can replace manual dependency hunting with reproducible, versioned package management, cutting build times via binary caching.

Read this as

vcpkg is a free package manager for the C and C++ programming languages, maintained by Microsoft since 2016. A package manager automatically downloads and organises the external code libraries a project needs, instead of the developer hunting versions and setting paths by hand. It works on Windows, macOS, and Linux, and fits into build tools like CMake and MSBuild. Anyone writing C++ programs with multiple dependencies benefits.

Microsoft's vcpkg reduces the hidden cost of C++ dependency management, a common source of wasted engineering time and 'works on my machine' failures. It is free, open source, and works with existing build systems, so adoption does not require retooling. Teams gain reproducible builds and binary caching, which reuses compiled artifacts instead of rebuilding them. No adoption costs beyond learning the tool are mentioned.

vcpkg is written in C++ with CMake scripts and integrates with CMake, MSBuild, Visual Studio, VS Code, CLion, and Qt Creator. Manifest mode declares dependencies per project via 'vcpkg new --application' and 'vcpkg add port fmt', making builds reproducible, while classic mode installs packages directly. Binary caching reuses compiled artifacts across branches, and asset caching supports offline or air-gapped CI. It supports custom registries for publishing internal packages.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

vcpkg Microsoft CMake MSBuild Visual Studio GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading