Skip to content

Instantly share code, notes, and snippets.

@cenit
Created November 11, 2017 11:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cenit/469d0c2ccbf428614fc35de443470929 to your computer and use it in GitHub Desktop.
Save cenit/469d0c2ccbf428614fc35de443470929 to your computer and use it in GitHub Desktop.
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