Add Linux and macOS CMake presets (#7323)

* Add Linux CMake preset

* Add macOS preset

* Update ChangeLog
This commit is contained in:
Nick Bolton
2024-01-11 11:05:56 +00:00
committed by GitHub
parent d4133d1110
commit 83175d3e45
2 changed files with 34 additions and 6 deletions

View File

@ -2,15 +2,22 @@
"version": 2,
"configurePresets": [
{
"name": "windows",
"displayName": "Windows",
"generator": "Ninja",
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "windows",
"displayName": "Windows",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
},
"architecture": {
"value": "x64",
@ -20,6 +27,16 @@
"value": "host=x64",
"strategy": "external"
}
},
{
"name": "linux",
"displayName": "Linux",
"inherits": "base"
},
{
"name": "macos",
"displayName": "macOS",
"inherits": "base"
}
],
"buildPresets": [
@ -27,6 +44,16 @@
"name": "windows",
"displayName": "Windows",
"configurePreset": "windows"
},
{
"name": "linux",
"displayName": "Linux",
"configurePreset": "linux"
},
{
"name": "macos",
"displayName": "macOS",
"configurePreset": "macos"
}
]
}

View File

@ -21,7 +21,8 @@ Build/CI:
- #7319 Remove workflows for slow self-hosted RPi runners
- #7320 Move build_version.py script to scripts dir
- #7321 Switch to GitHub hosted Mac M1 runner
- #7322 Use C++20 and add VSCode tasks config
- #7322 Use C++20 and add Windows CMake preset
- #7323 Add Linux and macOS CMake presets
# 1.14.6