CMakePresets tweaks for Windows

This commit is contained in:
Dan Paulat 2025-05-28 19:53:14 -05:00
parent 4ad2983c24
commit ac475999f5

View file

@ -19,6 +19,7 @@
"name": "windows-base", "name": "windows-base",
"inherits": "base", "inherits": "base",
"hidden": true, "hidden": true,
"generator": "Visual Studio 17 2022",
"condition": { "condition": {
"type": "equals", "type": "equals",
"lhs": "${hostSystemName}", "lhs": "${hostSystemName}",
@ -26,7 +27,6 @@
}, },
"vendor": { "vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": { "microsoft.com/VisualStudioSettings/CMake/1.0": {
"enableClangTidyCodeAnalysis": true,
"hostOS": [ "hostOS": [
"Windows" "Windows"
] ]
@ -58,6 +58,17 @@
"CONAN_BUILD_PROFILE": "scwx-windows_msvc2022_x64" "CONAN_BUILD_PROFILE": "scwx-windows_msvc2022_x64"
} }
}, },
{
"name": "windows-msvc2022-x64-ninja-base",
"inherits": "windows-msvc2022-x64-base",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "C:/Qt/6.8.3/msvc2022_64",
"CONAN_HOST_PROFILE": "scwx-windows_msvc2022_x64",
"CONAN_BUILD_PROFILE": "scwx-windows_msvc2022_x64"
}
},
{ {
"name": "linux-gcc-base", "name": "linux-gcc-base",
"inherits": "linux-base", "inherits": "linux-base",
@ -76,6 +87,10 @@
"name": "windows-msvc2022-x64-debug", "name": "windows-msvc2022-x64-debug",
"inherits": "windows-msvc2022-x64-base", "inherits": "windows-msvc2022-x64-base",
"displayName": "Windows MSVC 2022 x64 Debug", "displayName": "Windows MSVC 2022 x64 Debug",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug" "CMAKE_BUILD_TYPE": "Debug"
} }
@ -84,6 +99,26 @@
"name": "windows-msvc2022-x64-release", "name": "windows-msvc2022-x64-release",
"inherits": "windows-msvc2022-x64-base", "inherits": "windows-msvc2022-x64-base",
"displayName": "Windows MSVC 2022 x64 Release", "displayName": "Windows MSVC 2022 x64 Release",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "windows-msvc2022-x64-ninja-debug",
"inherits": "windows-msvc2022-x64-ninja-base",
"displayName": "Windows MSVC 2022 x64 Ninja Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "windows-msvc2022-x64-ninja-release",
"inherits": "windows-msvc2022-x64-ninja-base",
"displayName": "Windows MSVC 2022 x64 Ninja Release",
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "Release" "CMAKE_BUILD_TYPE": "Release"
} }