mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05:00
19296f507d
`cmake --build <dir>` and `cmake --build --preset <preset>` are currently mutually exclusive options. This commit allows `<dir>` to override the build directory specified in a preset. This change allows the requirement for each build preset to have a configure preset to be dropped in a future commit. Closes: #27384
25 lines
418 B
Plaintext
25 lines
418 B
Plaintext
{
|
|
"version": 2,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 20,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"binaryDir": "${sourceDir}/build",
|
|
"generator": "@RunCMake_GENERATOR@",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "override",
|
|
"configurePreset": "default"
|
|
}
|
|
]
|
|
}
|