vcpkg 静态链接

 

 

在项目文件中增加

<PropertyGroup Label="Globals">
  <!-- .... -->
  <VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
  <VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
</PropertyGroup>

 

posted @ 2021-02-24 15:39  wolbo  阅读(234)  评论(0)    收藏  举报