From 9b4fd085207d89eb802bb289a307880ade478297 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 21 Jul 2026 15:43:05 +0900 Subject: [PATCH] Update cmake/ctest/cpack completions to version 4.4.0 --- src/_cmake | 7 ++++++- src/_cpack | 3 ++- src/_ctest | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/_cmake b/src/_cmake index c5893fe..2ded729 100644 --- a/src/_cmake +++ b/src/_cmake @@ -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 ... directories to destination directory' + 'copy_directory_if_different:copy changed content of ... directories to destination directory' + 'copy_directory_if_newer:copy newer content of ... 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' diff --git a/src/_cpack b/src/_cpack index 8e73116..5695a38 100644 --- a/src/_cpack +++ b/src/_cpack @@ -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]' \ diff --git a/src/_ctest b/src/_ctest index 2c6297f..f581dec 100644 --- a/src/_ctest +++ b/src/_ctest @@ -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]' \