VCPKG windows, windows-static 和 other 的区别

VCPKG Difference between windows, windows-static and other

我用的时候有什么区别

  1. vcpkg install <any package>:x64-windows
  2. x64-windows-static
  3. x64-windows-static-md?
x64-windows:
VCPKG_LIBRARY_LINKAGE = dynamic
VCPKG_CRT_LINKAGE = dynamic

x64-windows-static:
VCPKG_LIBRARY_LINKAGE = static
VCPKG_CRT_LINKAGE = static

x64-windows-static-md:
VCPKG_LIBRARY_LINKAGE = static
VCPKG_CRT_LINKAGE = dynamic

VCPKG_LIBRARY_LINKAGE 确定 library/port 是构建为静态库还是动态库
VCPKG_CRT_LINKAGE 确定是使用静态 (/MT(d)) 还是动态 (/MD(d)) CRT(C 运行时)