Merge pull request #1282 from zsh-users/update-cmake

Update cmake/ctest/cpack completions to version 4.4.0
This commit is contained in:
Shohei YOSHIDA 2026-07-23 09:26:50 +09:00 committed by GitHub
commit 4f5416f5fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for CMake 4.3.0 (https://cmake.org).
# Completion script for CMake 4.4.0 (https://cmake.org).
#
# -------------------------------------------------------------------------
# Authors
@ -75,6 +75,7 @@ local -a cmake_build_options=(
'(-Werror=deprecated)-Wno-error=deprecated[Make deprecated macro and function warnings (not) errors]'
'--preset=[Specify a configure preset]:preset:_cmake_presets'
'--presets-file=[Specify the path to a presets file]:file:_files'
'--list-presets[List available presets]'
'--workflow[Run a workflow preset]'
@ -707,13 +708,17 @@ _cmake_launchers() {
(( $+functions[_cmake_commands] )) ||
_cmake_commands() {
local -a commands=(
'bin2c:Turn a binary file into a C array'
'capabilities:Report capabilities built into cmake in JSON format'
'cat:concat the files and print them to the standard output'
'chdir:run command in a given directory'
'compare_files:check if file1 is same as file2'
'copy:copy files to destination (either file or directory)'
'copy_directory:copy content of <dir>... directories to destination directory'
'copy_directory_if_different:copy changed content of <dir>... directories to destination directory'
'copy_directory_if_newer:copy newer content of <dir>... directories to destination directory'
'copy_if_different:copy files if it has changed'
'copy_if_newer:copy files if source is newer than destination'
'echo:displays arguments as text'
'echo_append:displays arguments as text but no new line'
'env:run command in a modified environment'

View File

@ -24,7 +24,7 @@
# Description
# -----------
#
# Completion script for cpack 4.3.0 (https://kitware.com/cmake)
# Completion script for cpack 4.4.0 (https://kitware.com/cmake)
#
# ------------------------------------------------------------------------------
# Authors
@ -51,6 +51,7 @@ _cpack() {
'-B[Override/define CPACK_PACKAGE_DIRECTORY]:package_directory:_files -/' \
'--vendor[Override/define CPACK_PACKAGE_VENDOR]:vendor' \
'--preset[Read arguments from a package preset]' \
'--presets-file=[Specify the path to a presets file]:file:_files' \
'--list-presets[List available package preset]' \
'(- *)'{--version,-version}=-'[Print version number and exit]::format:(json-v1)' \
'(- *)--help[Print usage information and exit]' \

View File

@ -24,7 +24,7 @@
# Description
# -----------
#
# Completion script for ctest 4.3.0 (https://kitware.com/cmake)
# Completion script for ctest 4.4.0 (https://kitware.com/cmake)
#
# ------------------------------------------------------------------------------
# Authors
@ -39,6 +39,7 @@ _ctest() {
_arguments \
'--preset=[Read arguments from a test preset]:preset' \
'--presets-file=[Specify the path to a presets file]:file:_files' \
'--list-presets[List available test presets]' \
'(-C --build-config)'{-C,--build-config}'[Choose configuration to test]:config' \
'--progress[Enable short progress output from tests]' \
@ -67,6 +68,7 @@ _ctest() {
'*-D[Define a variable for script mode]:var' \
'(-M --test-model)'{-M,--test-model}'[Set the model for a dashboard]:model' \
'(-T --test-action)'{-T,--test-action}'[Set the dashboard action to perform]' \
'--source-dir[Specify the project source directory]:dir:_files -/' \
'--group[Specify what build group on the dashboard]:group' \
\*{-S,--script,-Sp,--script-new-process}'[Execute a dashboard for a configuration]:script:_files' \
'(-A --add-notes)'{-A,--add-notes}'[Add a notes file with submission]:file:_files' \
@ -82,7 +84,7 @@ _ctest() {
'--resource-spec-file[Set the resource spec file to use]:file:_files' \
'--no-label-summary[Disable timing summary information for labels]' \
'--no-subproject-summary[Disable timing summary information for subprojects]' \
'--test-dir[Specify the directory in which to look for tests]:dir:_files -/' \
'(--test-dir --build-dir)'{--test-dir,--build-dir}'[Specify the directory in which to look for tests]:dir:_files -/' \
'--build-and-test[Configure, build and run a test]' \
'*--build-target[Specify a specific target to build]:target' \
'--build-nocmake[Run the build without running cmake first]' \