我正在使用带有 vcpkg 的 VC2015 和 MSBuild 集成。 我已经做到了:
.vcpkg install cpprestsdk:x86-windows
现在我的项目正在使用 cpprestsdk 的 dll 及其依赖项。 是否可以使用 cpprestsdk dll 并链接到其依赖项的静态库?
您可以修改三元组文件 (tripletsx86-windows.cmake
( 或创建一个新文件来指定您想要的精确设置组合。
来源: https://github.com/Microsoft/vcpkg/blob/80f64c24dc0513b053f431059bc50634321702e7/docs/users/triplets.md#per-port-customization