Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
small tutorial on how to add proper tags to vcxproj files to enable vcpkg

While vcpkg works without any problem and any modification for the default triplet (x86-windows), if you need to use vcpkg libraries in your project targeting different triplets a small manual tag addition is required.

Open the project' .vcxproj file and find this section:

  <PropertyGroup Label="Globals">
        ....
  </PropertyGroup>

Inside this section, please add these tags (at the end of the PropertyGroup is perfect), depending on the choosen triplet:

x86-windows-static

        <VcpkgTriplet>x86-windows-static</VcpkgTriplet>
        <VcpkgEnabled>true</VcpkgEnabled>

x64-windows

        <VcpkgTriplet>x64-windows</VcpkgTriplet>
        <VcpkgEnabled>true</VcpkgEnabled>

x64-windows-static

        <VcpkgTriplet>x64-windows-static</VcpkgTriplet>
        <VcpkgEnabled>true</VcpkgEnabled>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.