add basic linux presets

This commit is contained in:
BlackMATov
2022-11-06 19:25:40 +07:00
parent 26e8839380
commit cd1e0b00b7

View File

@@ -18,6 +18,32 @@
"CMAKE_EXPORT_COMPILE_COMMANDS": true
}
},
{
"name": "linux-base",
"hidden": true,
"inherits": "ninja-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "linux-clang10",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-10",
"CMAKE_CXX_COMPILER": "clang++-10"
}
},
{
"name": "linux-gcc10",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-10",
"CMAKE_CXX_COMPILER": "g++-10"
}
},
{
"name": "macos-base",
"hidden": true,
@@ -135,6 +161,26 @@
],
"buildPresets": [
{
"name": "linux-clang10-debug",
"configuration": "Debug",
"configurePreset": "linux-clang10"
},
{
"name": "linux-clang10-release",
"configuration": "Release",
"configurePreset": "linux-clang10"
},
{
"name": "linux-gcc10-debug",
"configuration": "Debug",
"configurePreset": "linux-gcc10"
},
{
"name": "linux-gcc10-release",
"configuration": "Release",
"configurePreset": "linux-gcc10"
},
{
"name": "macos-arm64-debug",
"configuration": "Debug",