How to enable static linking using 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">

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







Posted in c++, vcpkg on Aug 31, 2018