我正在尝试将Windows上的gRPC编译为与必须使用Visual Studio 2015工具集进行编译的C ++应用程序兼容的DLL。
通过Visual Studio 2019安装程序,我将VS2019与Visual Studio 2015的旧C ++工具集(不是IDE)一起安装了。
当我在VS2019中打开新克隆的gRPC源文件夹时,其CMake集成会使用默认值创建以下CMakeSettings.json
:
{
// See https://go.microsoft.com//fwlink//?linkid=834763 for more information about this file.
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": ""
}
]
}
如何在CMakeSettings.json
文件中指定在命令行或CMake GUI上使用CMake时可以指定的以下-A
和-T
选项?