MicrosoftCppRestSDK笔记
REST SDK
注意事项
CMake 如何识别 vcpkg 安装的库路径?
命令行添加参数-DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
GUI 点击 “Add Entry”:
名称为:CMAKE_TOOLCHAIN_FILE
值为:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
参考:Microsoft/cpprestsdk WIKIvcpkg 安装的依赖库如何指定平台工具集?
默认情况下 VS2017 会使用 visual studio 2017(v141),一种可行的修改途径是,在{VCPKG_ROOT}\triplets\x64-windows.cmake
中设置环境变量:set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_PLATFORM_TOOLSET v140)