Fix CMakePresets for VS2019 and VS2022 build.

This commit is contained in:
Syoyo Fujita
2022-12-02 04:38:08 +09:00
parent b7115806db
commit 89ba13e5fa

View File

@@ -16,6 +16,114 @@
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "msvc_2022_debug",
"displayName": "Default MSVC x64 Debug Config",
"description": "Default MSVC x64 Debug build",
"generator": "Visual Studio 17 2022",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2022_release",
"displayName": "Default MSVC x64 Release Config",
"description": "Default MSVC x64 Release build",
"generator": "Visual Studio 17 2022",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2022_relwithdebinfo",
"displayName": "Default MSVC x64 RelWithDebInfo Config",
"description": "Default MSVC x64 RelWithDebInfo build",
"generator": "Visual Studio 17 2022",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/RelWithDebInfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2022_minsizerel",
"displayName": "Default MSVC x64 MinSizeRel Config",
"description": "Default MSVC x64 MinSizeRel build",
"generator": "Visual Studio 17 2022",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/MinSizeRel",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2019_debug",
"displayName": "Default MSVC x64 Debug Config(VS2019)",
"description": "Default MSVC x64 Debug build",
"generator": "Visual Studio 16 2019",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/Debug",
"configurationType": "Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2019_release",
"displayName": "Default MSVC x64 Release Config(VS2019)",
"description": "Default MSVC x64 Release build",
"generator": "Visual Studio 16 2019",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/Release",
"configurationType": "Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2019_relwithdebinfo",
"displayName": "Default MSVC x64 RelWithDebInfo Config(VS2019)",
"description": "Default MSVC x64 RelWithDebInfo build",
"generator": "Visual Studio 17 2019",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/RelWithDebInfo",
"configurationType": "RelWithDebInfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc_2019_minsizerel",
"displayName": "Default MSVC x64 MinSizeRel Config(VS2019)",
"description": "Default MSVC x64 MinSizeRel build",
"generator": "Visual Studio 16 2019",
"architecture": { "value": "x64" },
"binaryDir": "${sourceDir}/build/MinSizeRel",
"configurationType": "MinSizeRel",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "ninja-multi",
"inherits": "default_debug",
@@ -28,6 +136,46 @@
{
"name": "default_debug",
"configurePreset": "default_debug"
},
{
"name": "msvc_2022_debug",
"displayName": "Debug",
"configurePreset": "msvc_2022_debug"
},
{
"name": "msvc_2022_release",
"displayName": "Release",
"configurePreset": "msvc_2022_release"
},
{
"name": "msvc_2022_relwithdebinfo",
"displayName": "RelWithDebInfo",
"configurePreset": "msvc_2022_relwithdebinfo"
},
{
"name": "msvc_2022_minsizerel",
"displayName": "MinSizeRel",
"configurePreset": "msvc_2022_minsizerel"
},
{
"name": "msvc_2019_debug",
"displayName": "Debug",
"configurePreset": "msvc_2019_debug"
},
{
"name": "msvc_2019_release",
"displayName": "Release",
"configurePreset": "msvc_2019_release"
},
{
"name": "msvc_2019_relwithdebinfo",
"displayName": "RelWithDebInfo",
"configurePreset": "msvc_2019_relwithdebinfo"
},
{
"name": "msvc_2019_minsizerel",
"displayName": "MinSizeRel",
"configurePreset": "msvc_2019_minsizerel"
}
],
"testPresets": [