conan-vcpkg

Manage C/C++ dependencies and CMake integration using Conan or vcpkg.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/awfixers-stuff/opencode-config --skill conan-vcpkg-awfixers-stuff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: conan-vcpkg
Source: https://github.com/awfixers-stuff/opencode-config/tree/main/skills/conan-vcpkg
Command: npx skills add https://github.com/awfixers-stuff/opencode-config --skill conan-vcpkg-awfixers-stuff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

C/C++ projects often struggle with declaring third-party dependencies, achieving binary compatibility across platforms and compilers, integrating package managers with CMake, and creating reproducible CI builds; this Skill provides guidance to resolve those problems using Conan or vcpkg.

Core Features & Use Cases

  • Manage dependency declaration and installation using vcpkg manifests or conanfile formats.
  • Integrate package managers with CMake via toolchain files and CMakeDeps/CMakeToolchain for seamless find_package usage.
  • Support cross-compilation and reproducible builds through Conan profiles, vcpkg triplets/baselines, and binary cache or baseline pinning.
  • Use case: set up a GitHub-hosted open-source project with vcpkg manifest mode for broad contributor compatibility, or configure Conan with private binary caches for enterprise CI.

Quick Start

Use the conan-vcpkg skill to add zlib and fmt to a CMake project and configure either a vcpkg.json manifest or a conanfile with CMake toolchain integration for a reproducible build.

Frequently Asked Questions about conan-vcpkg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Conan or vcpkg with CMake for dependency management?

Integrate Conan or vcpkg with CMake by using toolchain files and CMakeDeps or CMakeToolchain generators. This enables seamless find_package usage, allowing your CMake project to locate and link installed third-party dependencies automatically.

What is the best way to achieve reproducible C++ builds in CI using package managers?

Achieve reproducible C++ CI builds by pinning vcpkg baselines or using Conan binary caches with specific profiles. This locks dependency versions and binaries, ensuring consistent installations across different CI runners and preventing unexpected version drift.

How do I set up cross-compilation for C++ projects using Conan profiles or vcpkg triplets?

Set up C++ cross-compilation by defining Conan profiles or vcpkg triplets that specify target architectures, compilers, and system names. These configurations instruct the package managers to fetch or build binaries compatible with your target environment.

Does vcpkg manifest mode work for broad contributor compatibility in open-source projects?

Yes, vcpkg manifest mode works for broad contributor compatibility in open-source projects. By declaring dependencies in a vcpkg.json manifest, contributors can automatically install required packages and achieve reproducible local builds without manual environment setup.

Can I use private binary caches with Conan for enterprise CI pipelines?

Yes, you can use private binary caches with Conan for enterprise CI pipelines. Configuring Conan with private caches allows your organization to store and retrieve pre-compiled binaries internally, significantly reducing build times and ensuring binary compatibility.