aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2023-11-13 10:11:11 -0500
committerGitHub <noreply@github.com>2023-11-13 10:11:11 -0500
commitd04e01fce362d18a7efdf9f1b14cd17780e7f28a (patch)
tree59b10533d356430228266b7d419e5c96ba8026a5 /src
parentMerge pull request #1055 from zsh-users/update-node (diff)
downloadzsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar.gz
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar.bz2
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar.lz
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar.xz
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.tar.zst
zsh-completions-d04e01fce362d18a7efdf9f1b14cd17780e7f28a.zip
Add -DBUILD_SHARED_LIBS completion for cmake completions
Diffstat (limited to 'src')
-rw-r--r--src/_cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/_cmake b/src/_cmake
index afb1739..c6c8e16 100644
--- a/src/_cmake
+++ b/src/_cmake
@@ -424,6 +424,7 @@ _cmake_define_common_property_names() {
'CMAKE_MODULE_PATH:Search path for CMake modules (FindPROJECT.cmake)'
'CMAKE_PREFIX_PATH:Search path for installations (PROJECTConfig.cmake)'
'CMAKE_BUILD_TYPE:Specifies the build type for make based generators'
+ 'BUILD_SHARED_LIBS:Global flag to cause add_library() to create shared libraries if on'
'CMAKE_TOOLCHAIN_FILE:Absolute or relative path to a CMake script which sets up toolchain related variables'
'CMAKE_COLOR_MAKEFILE:Enables/disables color output when using the Makefile generator'
'CMAKE_INSTALL_PREFIX:Install directory used by install'
@@ -449,6 +450,7 @@ _cmake_define_property_values() {
setopt localoptions extendedglob
case $@[-1] in
(CMAKE_BUILD_TYPE) _wanted build-types expl 'build type' _values 'build type' ${_cmake_build_types[@]} && ret=0;;
+ (BUILD_SHARED_LIBS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_CXX_STANDARD) _wanted cxx-standards expl 'cxx standard' _values 'cxx standard' ${_cmake_cxx_standards[@]} && ret=0;;
(CMAKE_C_STANDARD) _wanted c-standards expl 'c standard' _values 'c standard' ${_cmake_c_standards[@]} && ret=0;;
(CMAKE_TOOLCHAIN_FILE) _wanted toolchain-files expl 'file' _cmake_toolchain_files && ret=0;;