Compare commits

..

3 Commits

Author SHA1 Message Date
Armin Richard Veres 3d348d410d
fix(cmake): use proper CMakePresets.json parsing 2026-08-07 11:02:40 +02:00
Armin Richard Veres bea1fb2a32
perf(cmake): cache targets for buildPresets 2026-08-07 11:02:39 +02:00
Armin Richard Veres 91b5b98e38
refactor(cmake): allow completion for configure/buildPresets with/out '=' 2026-08-07 11:02:39 +02:00
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ _cmake_preset_build_dir() {
_cmake_presets() {
local invoke=(${(Q)words})
invoke[$CURRENT]=()
# drop a dangling --preset/--preset=... so it doesn't swallow --list-presets as its value
invoke=(${invoke:#--preset})
invoke=(${invoke:#--preset=*})
# TODO: remove all arguments -* except -S
local list_presets=(${(f)"$(${invoke} --list-presets 2>/dev/null |