diff --git a/cmake/SOURCE.txt b/cmake/SOURCE.txt
new file mode 100644
index 00000000..4958e541
--- /dev/null
+++ b/cmake/SOURCE.txt
@@ -0,0 +1,171 @@
+============================================================================ INFO
+https://gitlab.kitware.com/cmake/cmake
+
+VERSION: https://github.com/Kitware/CMake/releases/tag/v3.30.2
+
+============================================================================ LICENSE
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/cmake/bin/cmake b/cmake/bin/cmake
index 30bc50da..a570645e 100644
Binary files a/cmake/bin/cmake and b/cmake/bin/cmake differ
diff --git a/cmake/share/aclocal/cmake.m4 b/cmake/share/aclocal/cmake.m4
index 46ce5b83..39826bcd 100644
--- a/cmake/share/aclocal/cmake.m4
+++ b/cmake/share/aclocal/cmake.m4
@@ -1,44 +1,44 @@
-dnl Distributed under the OSI-approved BSD 3-Clause License. See accompanying
-dnl file Copyright.txt or https://cmake.org/licensing for details.
-
-AC_DEFUN([CMAKE_FIND_BINARY],
-[AC_ARG_VAR([CMAKE_BINARY], [path to the cmake binary])dnl
-
-if test "x$ac_cv_env_CMAKE_BINARY_set" != "xset"; then
- AC_PATH_TOOL([CMAKE_BINARY], [cmake])dnl
-fi
-])dnl
-
-# $1: package name
-# $2: language (e.g. C/CXX/Fortran)
-# $3: The compiler ID, defaults to GNU.
-# Possible values are: GNU, Intel, Clang, SunPro, HP, XL, VisualAge, PGI,
-# PathScale, Cray, SCO, MSVC, LCC
-# $4: optional extra arguments to cmake, e.g. "-DCMAKE_SIZEOF_VOID_P=8"
-# $5: optional path to cmake binary
-AC_DEFUN([CMAKE_FIND_PACKAGE], [
-AC_REQUIRE([CMAKE_FIND_BINARY])dnl
-
-AC_ARG_VAR([$1][_][$2][FLAGS], [$2 compiler flags for $1. This overrides the cmake output])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1. This overrides the cmake output])dnl
-
-failed=false
-AC_MSG_CHECKING([for $1])
-if test -z "${$1[]_$2[]FLAGS}"; then
- $1[]_$2[]FLAGS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=COMPILE $4` || failed=true
-fi
-if test -z "${$1[]_LIBS}"; then
- $1[]_LIBS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=LINK $4` || failed=true
-fi
-
-if $failed; then
- unset $1[]_$2[]FLAGS
- unset $1[]_LIBS
-
- AC_MSG_RESULT([no])
- $6
-else
- AC_MSG_RESULT([yes])
- $5
-fi[]dnl
-])
+dnl Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+dnl file Copyright.txt or https://cmake.org/licensing for details.
+
+AC_DEFUN([CMAKE_FIND_BINARY],
+[AC_ARG_VAR([CMAKE_BINARY], [path to the cmake binary])dnl
+
+if test "x$ac_cv_env_CMAKE_BINARY_set" != "xset"; then
+ AC_PATH_TOOL([CMAKE_BINARY], [cmake])dnl
+fi
+])dnl
+
+# $1: package name
+# $2: language (e.g. C/CXX/Fortran)
+# $3: The compiler ID, defaults to GNU.
+# Possible values are: GNU, Intel, Clang, SunPro, HP, XL, VisualAge, PGI,
+# PathScale, Cray, SCO, MSVC, LCC
+# $4: optional extra arguments to cmake, e.g. "-DCMAKE_SIZEOF_VOID_P=8"
+# $5: optional path to cmake binary
+AC_DEFUN([CMAKE_FIND_PACKAGE], [
+AC_REQUIRE([CMAKE_FIND_BINARY])dnl
+
+AC_ARG_VAR([$1][_][$2][FLAGS], [$2 compiler flags for $1. This overrides the cmake output])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1. This overrides the cmake output])dnl
+
+failed=false
+AC_MSG_CHECKING([for $1])
+if test -z "${$1[]_$2[]FLAGS}"; then
+ $1[]_$2[]FLAGS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=COMPILE $4` || failed=true
+fi
+if test -z "${$1[]_LIBS}"; then
+ $1[]_LIBS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=LINK $4` || failed=true
+fi
+
+if $failed; then
+ unset $1[]_$2[]FLAGS
+ unset $1[]_LIBS
+
+ AC_MSG_RESULT([no])
+ $6
+else
+ AC_MSG_RESULT([yes])
+ $5
+fi[]dnl
+])
diff --git a/cmake/share/applications/cmake-gui.desktop b/cmake/share/applications/cmake-gui.desktop
index 6b7e9379..0299c9d0 100644
--- a/cmake/share/applications/cmake-gui.desktop
+++ b/cmake/share/applications/cmake-gui.desktop
@@ -1,12 +1,12 @@
-[Desktop Entry]
-Version=1.0
-Name=CMake
-Comment=Cross-platform buildsystem
-Exec=cmake-gui %f
-Icon=CMakeSetup
-Terminal=false
-X-MultipleArgs=false
-Type=Application
-Categories=Development;Building;
-StartupNotify=true
-MimeType=application/x-cmakecache;
+[Desktop Entry]
+Version=1.0
+Name=CMake
+Comment=Cross-platform buildsystem
+Exec=cmake-gui %f
+Icon=CMakeSetup
+Terminal=false
+X-MultipleArgs=false
+Type=Application
+Categories=Development;Building;
+StartupNotify=true
+MimeType=application/x-cmakecache;
diff --git a/cmake/share/bash-completion/completions/cmake b/cmake/share/bash-completion/completions/cmake
index 94672d1d..803e09e4 100644
--- a/cmake/share/bash-completion/completions/cmake
+++ b/cmake/share/bash-completion/completions/cmake
@@ -1,202 +1,216 @@
-# bash completion for cmake(1) -*- shell-script -*-
-
-_cmake()
-{
- local cur prev words cword split=false
- if type -t _init_completion >/dev/null; then
- _init_completion -n = || return
- else
- # manual initialization for older bash completion versions
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- fi
-
- # Workaround for options like -DCMAKE_BUILD_TYPE=Release
- local prefix=
- if [[ $cur == -D* ]]; then
- prev=-D
- prefix=-D
- cur="${cur#-D}"
- elif [[ $cur == -U* ]]; then
- prev=-U
- prefix=-U
- cur="${cur#-U}"
- fi
-
- case "$prev" in
- -D)
- if [[ $cur == *=* ]]; then
- # complete values for variables
- local var type value
- var="${cur%%[:=]*}"
- value="${cur#*=}"
-
- if [[ $cur == CMAKE_BUILD_TYPE* ]]; then # most widely used case
- COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
- MinSizeRel' -- "$value" ) )
- return
- fi
-
- if [[ $cur == *:* ]]; then
- type="${cur#*:}"
- type="${type%%=*}"
- else # get type from cache if it's not set explicitly
- type=$( cmake -LA -N 2>/dev/null | grep "$var:" \
- 2>/dev/null )
- type="${type#*:}"
- type="${type%%=*}"
- fi
- case "$type" in
- FILEPATH)
- cur="$value"
- _filedir
- return
- ;;
- PATH)
- cur="$value"
- _filedir -d
- return
- ;;
- BOOL)
- COMPREPLY=( $( compgen -W 'ON OFF TRUE FALSE' -- \
- "$value" ) )
- return
- ;;
- STRING|INTERNAL)
- # no completion available
- return
- ;;
- esac
- elif [[ $cur == *:* ]]; then
- # complete types
- local type="${cur#*:}"
- COMPREPLY=( $( compgen -W 'FILEPATH PATH STRING BOOL INTERNAL'\
- -S = -- "$type" ) )
- compopt -o nospace
- else
- # complete variable names
- COMPREPLY=( $( compgen -W '$( cmake -LA -N 2>/dev/null |
- tail -n +2 | cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
- compopt -o nospace
- fi
- return
- ;;
- -U)
- COMPREPLY=( $( compgen -W '$( cmake -LA -N | tail -n +2 |
- cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
- return
- ;;
- esac
-
- _split_longopt && split=true
-
- case "$prev" in
- -C|-P|--graphviz|--system-information)
- _filedir
- return
- ;;
- --build)
- # Seed the reply with non-directory arguments that we know are
- # allowed to follow --build. _filedir will then prepend any valid
- # directory matches to these.
- COMPREPLY=( $( compgen -W "--preset --list-presets" -- "$cur" ) )
- _filedir -d
- return
- ;;
- --install|--open)
- _filedir -d
- return
- ;;
- -E)
- COMPREPLY=( $( compgen -W "$( cmake -E help |& sed -n \
- '/^ [^ ]/{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
- -- "$cur" ) )
- return
- ;;
- -G)
- local IFS=$'\n'
- local quoted
- printf -v quoted %q "$cur"
- COMPREPLY=( $( compgen -W '$( cmake --help 2>/dev/null | sed -n \
- -e "1,/^Generators/d" \
- -e "/^ *[^ =]/{s|^ *\([^=]*[^ =]\).*$|\1|;s| |\\\\ |g;p}" \
- 2>/dev/null )' -- "$quoted" ) )
- return
- ;;
- --loglevel)
- COMPREPLY=( $(compgen -W 'error warning notice status verbose debug trace' -- $cur ) )
- ;;
- --help-command)
- COMPREPLY=( $( compgen -W '$( cmake --help-command-list 2>/dev/null|
- grep -v "^cmake version " )' -- "$cur" ) )
- return
- ;;
- --help-manual)
- COMPREPLY=( $( compgen -W '$( cmake --help-manual-list 2>/dev/null|
- grep -v "^cmake version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
- return
- ;;
- --help-module)
- COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null|
- grep -v "^cmake version " )' -- "$cur" ) )
- return
- ;;
- --help-policy)
- COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null |
- grep -v "^cmake version " )' -- "$cur" ) )
- return
- ;;
- --help-property)
- COMPREPLY=( $( compgen -W '$( cmake --help-property-list \
- 2>/dev/null | grep -v "^cmake version " )' -- "$cur" ) )
- return
- ;;
- --help-variable)
- COMPREPLY=( $( compgen -W '$( cmake --help-variable-list \
- 2>/dev/null | grep -v "^cmake version " )' -- "$cur" ) )
- return
- ;;
- --list-presets)
- local IFS=$'\n'
- local quoted
- printf -v quoted %q "$cur"
-
- if [[ ! "${IFS}${COMP_WORDS[*]}${IFS}" =~ "${IFS}--build${IFS}" ]]; then
- COMPREPLY=( $( compgen -W "configure${IFS}build${IFS}test${IFS}all" -- "$quoted" ) )
- fi
- return
- ;;
- --preset)
- local IFS=$'\n'
- local quoted
- printf -v quoted %q "$cur"
-
- local build_or_configure="configure"
- if [[ "${IFS}${COMP_WORDS[*]}${IFS}" =~ "${IFS}--build${IFS}" ]]; then
- build_or_configure="build"
- fi
-
- local presets=$( cmake --list-presets="$build_or_configure" 2>/dev/null |
- grep -o "^ \".*\"" | sed \
- -e "s/^ //g" \
- -e "s/\"//g" \
- -e 's/ /\\\\ /g' )
- COMPREPLY=( $( compgen -W "$presets" -- "$quoted" ) )
- return
- ;;
- esac
-
- $split && return
-
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
- [[ $COMPREPLY ]] && return
- fi
-
- _filedir
-} &&
-complete -F _cmake cmake
-
-# ex: ts=4 sw=4 et filetype=sh
+# bash completion for cmake(1) -*- shell-script -*-
+
+_cmake()
+{
+ local is_old_completion=false
+ local is_init_completion=false
+
+ local cur prev words cword split was_split
+ if type -t _comp_initialize >/dev/null; then
+ _comp_initialize -s || return
+ elif type -t _init_completion >/dev/null; then
+ _init_completion -s || return
+ is_init_completion=true
+ else
+ # manual initialization for older bash completion versions
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ is_old_completion=true
+ split=false
+ fi
+
+ # Workaround for options like -DCMAKE_BUILD_TYPE=Release
+ local prefix=
+ if [[ $cur == -D* ]]; then
+ prev=-D
+ prefix=-D
+ cur="${cur#-D}"
+ elif [[ $cur == -U* ]]; then
+ prev=-U
+ prefix=-U
+ cur="${cur#-U}"
+ fi
+
+ case "$prev" in
+ -D)
+ if [[ $cur == *=* ]]; then
+ # complete values for variables
+ local var type value
+ var="${cur%%[:=]*}"
+ value="${cur#*=}"
+
+ if [[ $cur == CMAKE_BUILD_TYPE* ]]; then # most widely used case
+ COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
+ MinSizeRel' -- "$value" ) )
+ return
+ fi
+
+ if [[ $cur == *:* ]]; then
+ type="${cur#*:}"
+ type="${type%%=*}"
+ else # get type from cache if it's not set explicitly
+ type=$( cmake -LA -N 2>/dev/null | grep "$var:" \
+ 2>/dev/null )
+ type="${type#*:}"
+ type="${type%%=*}"
+ fi
+ case "$type" in
+ FILEPATH)
+ cur="$value"
+ _filedir
+ return
+ ;;
+ PATH)
+ cur="$value"
+ _filedir -d
+ return
+ ;;
+ BOOL)
+ COMPREPLY=( $( compgen -W 'ON OFF TRUE FALSE' -- \
+ "$value" ) )
+ return
+ ;;
+ STRING|INTERNAL)
+ # no completion available
+ return
+ ;;
+ esac
+ elif [[ $cur == *:* ]]; then
+ # complete types
+ local type="${cur#*:}"
+ COMPREPLY=( $( compgen -W 'FILEPATH PATH STRING BOOL INTERNAL'\
+ -S = -- "$type" ) )
+ compopt -o nospace
+ else
+ # complete variable names
+ COMPREPLY=( $( compgen -W '$( cmake -LA -N 2>/dev/null |
+ tail -n +2 | cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
+ compopt -o nospace
+ fi
+ return
+ ;;
+ -U)
+ COMPREPLY=( $( compgen -W '$( cmake -LA -N | tail -n +2 |
+ cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
+ return
+ ;;
+ esac
+
+ if $is_old_completion; then
+ _split_longopt && split=true
+ fi
+
+ case "$prev" in
+ -C|-P|--graphviz|--system-information)
+ _filedir
+ return
+ ;;
+ --build)
+ # Seed the reply with non-directory arguments that we know are
+ # allowed to follow --build. _filedir will then prepend any valid
+ # directory matches to these.
+ COMPREPLY=( $( compgen -W "--preset --list-presets" -- "$cur" ) )
+ _filedir -d
+ return
+ ;;
+ --install|--open)
+ _filedir -d
+ return
+ ;;
+ -E)
+ COMPREPLY=( $( compgen -W "$( cmake -E help |& sed -n \
+ '/^ [^ ]/{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
+ -- "$cur" ) )
+ return
+ ;;
+ -G)
+ local IFS=$'\n'
+ local quoted
+ printf -v quoted %q "$cur"
+ COMPREPLY=( $( compgen -W '$( cmake --help 2>/dev/null | sed -n \
+ -e "1,/^Generators/d" \
+ -e "/^ *[^ =]/{s|^ *\([^=]*[^ =]\).*$|\1|;s| |\\\\ |g;p}" \
+ 2>/dev/null )' -- "$quoted" ) )
+ return
+ ;;
+ --loglevel)
+ COMPREPLY=( $(compgen -W 'error warning notice status verbose debug trace' -- $cur ) )
+ ;;
+ --help-command)
+ COMPREPLY=( $( compgen -W '$( cmake --help-command-list 2>/dev/null|
+ grep -v "^cmake version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-manual)
+ COMPREPLY=( $( compgen -W '$( cmake --help-manual-list 2>/dev/null|
+ grep -v "^cmake version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+ return
+ ;;
+ --help-module)
+ COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null|
+ grep -v "^cmake version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-policy)
+ COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null |
+ grep -v "^cmake version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-property)
+ COMPREPLY=( $( compgen -W '$( cmake --help-property-list \
+ 2>/dev/null | grep -v "^cmake version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-variable)
+ COMPREPLY=( $( compgen -W '$( cmake --help-variable-list \
+ 2>/dev/null | grep -v "^cmake version " )' -- "$cur" ) )
+ return
+ ;;
+ --list-presets)
+ local IFS=$'\n'
+ local quoted
+ printf -v quoted %q "$cur"
+
+ if [[ ! "${IFS}${COMP_WORDS[*]}${IFS}" =~ "${IFS}--build${IFS}" ]]; then
+ COMPREPLY=( $( compgen -W "configure${IFS}build${IFS}test${IFS}all" -- "$quoted" ) )
+ fi
+ return
+ ;;
+ --preset)
+ local IFS=$'\n'
+ local quoted
+ printf -v quoted %q "$cur"
+
+ local build_or_configure="configure"
+ if [[ "${IFS}${COMP_WORDS[*]}${IFS}" =~ "${IFS}--build${IFS}" ]]; then
+ build_or_configure="build"
+ fi
+
+ local presets=$( cmake --list-presets="$build_or_configure" 2>/dev/null |
+ grep -o "^ \".*\"" | sed \
+ -e "s/^ //g" \
+ -e "s/\"//g" \
+ -e 's/ /\\\\ /g' )
+ COMPREPLY=( $( compgen -W "$presets" -- "$quoted" ) )
+ return
+ ;;
+ esac
+
+ if ($is_old_completion || $is_init_completion); then
+ $split && return
+ else
+ [[ $was_split ]] && return
+ fi
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
+ [[ $COMPREPLY ]] && return
+ fi
+
+ _filedir
+} &&
+complete -F _cmake cmake
+
+# ex: ts=4 sw=4 et filetype=sh
diff --git a/cmake/share/bash-completion/completions/cpack b/cmake/share/bash-completion/completions/cpack
index d1648a58..5fc47ab4 100644
--- a/cmake/share/bash-completion/completions/cpack
+++ b/cmake/share/bash-completion/completions/cpack
@@ -1,88 +1,90 @@
-# bash completion for cpack(1) -*- shell-script -*-
-
-_cpack()
-{
- local cur prev words cword
- if type -t _init_completion >/dev/null; then
- _init_completion -n = || return
- else
- # manual initialization for older bash completion versions
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- fi
-
- case "$prev" in
- -G)
- COMPREPLY=( $( compgen -W '$( cpack --help 2>/dev/null |
- sed -e "1,/^Generators/d" -e "s|^ *\([^ ]*\) .*$|\1|" \
- 2>/dev/null )' -- "$cur" ) )
- return
- ;;
- -C)
- COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
- MinSizeRel' -- "$cur" ) )
- return
- ;;
- -D)
- [[ $cur == *=* ]] && return # no completion for values
- COMPREPLY=( $( compgen -W '$( cpack --help-variable-list \
- 2>/dev/null | grep -v "^cpack version " )' -S = -- "$cur" ) )
- compopt -o nospace
- return
- ;;
- -P|-R|--vendor)
- # argument required but no completions available
- return
- ;;
- -B)
- _filedir -d
- return
- ;;
- --config)
- _filedir
- return
- ;;
- --help-command)
- COMPREPLY=( $( compgen -W '$( cpack --help-command-list 2>/dev/null|
- grep -v "^cpack version " )' -- "$cur" ) )
- return
- ;;
- --help-manual)
- COMPREPLY=( $( compgen -W '$( cpack --help-manual-list 2>/dev/null|
- grep -v "^cpack version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
- return
- ;;
- --help-module)
- COMPREPLY=( $( compgen -W '$( cpack --help-module-list 2>/dev/null|
- grep -v "^cpack version " )' -- "$cur" ) )
- return
- ;;
- --help-policy)
- COMPREPLY=( $( compgen -W '$( cpack --help-policy-list 2>/dev/null |
- grep -v "^cpack version " )' -- "$cur" ) )
- return
- ;;
- --help-property)
- COMPREPLY=( $( compgen -W '$( cpack --help-property-list \
- 2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )
- return
- ;;
- --help-variable)
- COMPREPLY=( $( compgen -W '$( cpack --help-variable-list \
- 2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )
- return
- ;;
- esac
-
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
- [[ $COMPREPLY ]] && return
- fi
-
- _filedir
-} &&
-complete -F _cpack cpack
-
-# ex: ts=4 sw=4 et filetype=sh
+# bash completion for cpack(1) -*- shell-script -*-
+
+_cpack()
+{
+ local cur prev words cword
+ if type -t _comp_initialize >/dev/null; then
+ _comp_initialize -n = || return
+ elif type -t _init_completion >/dev/null; then
+ _init_completion -n = || return
+ else
+ # manual initialization for older bash completion versions
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ fi
+
+ case "$prev" in
+ -G)
+ COMPREPLY=( $( compgen -W '$( cpack --help 2>/dev/null |
+ sed -e "1,/^Generators/d" -e "s|^ *\([^ ]*\) .*$|\1|" \
+ 2>/dev/null )' -- "$cur" ) )
+ return
+ ;;
+ -C)
+ COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
+ MinSizeRel' -- "$cur" ) )
+ return
+ ;;
+ -D)
+ [[ $cur == *=* ]] && return # no completion for values
+ COMPREPLY=( $( compgen -W '$( cpack --help-variable-list \
+ 2>/dev/null | grep -v "^cpack version " )' -S = -- "$cur" ) )
+ compopt -o nospace
+ return
+ ;;
+ -P|-R|--vendor)
+ # argument required but no completions available
+ return
+ ;;
+ -B)
+ _filedir -d
+ return
+ ;;
+ --config)
+ _filedir
+ return
+ ;;
+ --help-command)
+ COMPREPLY=( $( compgen -W '$( cpack --help-command-list 2>/dev/null|
+ grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-manual)
+ COMPREPLY=( $( compgen -W '$( cpack --help-manual-list 2>/dev/null|
+ grep -v "^cpack version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+ return
+ ;;
+ --help-module)
+ COMPREPLY=( $( compgen -W '$( cpack --help-module-list 2>/dev/null|
+ grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-policy)
+ COMPREPLY=( $( compgen -W '$( cpack --help-policy-list 2>/dev/null |
+ grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-property)
+ COMPREPLY=( $( compgen -W '$( cpack --help-property-list \
+ 2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-variable)
+ COMPREPLY=( $( compgen -W '$( cpack --help-variable-list \
+ 2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ esac
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
+ [[ $COMPREPLY ]] && return
+ fi
+
+ _filedir
+} &&
+complete -F _cpack cpack
+
+# ex: ts=4 sw=4 et filetype=sh
diff --git a/cmake/share/bash-completion/completions/ctest b/cmake/share/bash-completion/completions/ctest
index dd2e5c76..51cc6820 100644
--- a/cmake/share/bash-completion/completions/ctest
+++ b/cmake/share/bash-completion/completions/ctest
@@ -1,129 +1,131 @@
-# bash completion for ctest(1) -*- shell-script -*-
-
-_ctest()
-{
- local cur prev words cword
- if type -t _init_completion >/dev/null; then
- _init_completion -n = || return
- else
- # manual initialization for older bash completion versions
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- fi
-
- case "$prev" in
- -C|--build-config)
- COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
- MinSizeRel' -- "$cur" ) )
- return
- ;;
- -j|--parallel)
- COMPREPLY=( $( compgen -W "{1..$(( $(_ncpus)*2 ))}" -- "$cur" ) )
- return
- ;;
- -O|--output-log|-A|--add-notes|--extra-submit)
- _filedir
- return
- ;;
- -L|--label-regex|-LE|--label-exclude)
- COMPREPLY=( $( compgen -W '$( ctest --print-labels 2>/dev/null |
- grep "^ " 2>/dev/null | cut -d" " -f 3 )' -- "$cur" ) )
- return
- ;;
- --track|-I|--tests-information|--max-width|--timeout|--stop-time)
- # argument required but no completions available
- return
- ;;
- -R|--tests-regex|-E|--exclude-regex)
- COMPREPLY=( $( compgen -W '$( ctest -N 2>/dev/null |
- grep "^ Test" 2>/dev/null | cut -d: -f 2 )' -- "$cur" ) )
- return
- ;;
- -D|--dashboard)
- if [[ $cur == @(Experimental|Nightly|Continuous)* ]]; then
- local model action
- action=${cur#@(Experimental|Nightly|Continuous)}
- model=${cur%"$action"}
- COMPREPLY=( $( compgen -W 'Start Update Configure Build Test
- Coverage Submit MemCheck' -P "$model" -- "$action" ) )
- else
- COMPREPLY=( $( compgen -W 'Experimental Nightly Continuous' \
- -- "$cur" ) )
- compopt -o nospace
- fi
- return
- ;;
- -M|--test-model)
- COMPREPLY=( $( compgen -W 'Experimental Nightly Continuous' -- \
- "$cur" ) )
- return
- ;;
- -T|--test-action)
- COMPREPLY=( $( compgen -W 'Start Update Configure Build Test
- Coverage Submit MemCheck' -- "$cur" ) )
- return
- ;;
- -S|--script|-SP|--script-new-process)
- _filedir '@(cmake|ctest)'
- return
- ;;
- --interactive-debug-mode)
- COMPREPLY=( $( compgen -W '0 1' -- "$cur" ) )
- return
- ;;
-
- --help-command)
- COMPREPLY=( $( compgen -W '$( ctest --help-command-list 2>/dev/null|
- grep -v "^ctest version " )' -- "$cur" ) )
- return
- ;;
- --help-manual)
- COMPREPLY=( $( compgen -W '$( ctest --help-manual-list 2>/dev/null|
- grep -v "^ctest version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
- return
- ;;
- --help-module)
- COMPREPLY=( $( compgen -W '$( ctest --help-module-list 2>/dev/null|
- grep -v "^ctest version " )' -- "$cur" ) )
- return
- ;;
- --help-policy)
- COMPREPLY=( $( compgen -W '$( ctest --help-policy-list 2>/dev/null |
- grep -v "^ctest version " )' -- "$cur" ) )
- return
- ;;
- --help-property)
- COMPREPLY=( $( compgen -W '$( ctest --help-property-list \
- 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
- return
- ;;
- --help-variable)
- COMPREPLY=( $( compgen -W '$( ctest --help-variable-list \
- 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
- return
- ;;
- --preset)
- local IFS=$'\n'
- local quoted
- printf -v quoted %q "$cur"
- COMPREPLY=( $( compgen -W '$( ctest --list-presets 2>/dev/null |
- grep -o "^ \".*\"" | sed \
- -e "s/^ //g" \
- -e "s/\"//g" \
- -e "s/ /\\\\ /g" )' -- "$quoted" ) )
- return
- ;;
- esac
-
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
- [[ $COMPREPLY ]] && return
- fi
-
- _filedir
-} &&
-complete -F _ctest ctest
-
-# ex: ts=4 sw=4 et filetype=sh
+# bash completion for ctest(1) -*- shell-script -*-
+
+_ctest()
+{
+ local cur prev words cword
+ if type -t _comp_initialize >/dev/null; then
+ _comp_initialize -n = || return
+ elif type -t _init_completion >/dev/null; then
+ _init_completion -n = || return
+ else
+ # manual initialization for older bash completion versions
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ fi
+
+ case "$prev" in
+ -C|--build-config)
+ COMPREPLY=( $( compgen -W 'Debug Release RelWithDebInfo
+ MinSizeRel' -- "$cur" ) )
+ return
+ ;;
+ -j|--parallel)
+ COMPREPLY=( $( compgen -W "{1..$(( $(_ncpus)*2 ))}" -- "$cur" ) )
+ return
+ ;;
+ -O|--output-log|-A|--add-notes|--extra-submit)
+ _filedir
+ return
+ ;;
+ -L|--label-regex|-LE|--label-exclude)
+ COMPREPLY=( $( compgen -W '$( ctest --print-labels 2>/dev/null |
+ grep "^ " 2>/dev/null | cut -d" " -f 3 )' -- "$cur" ) )
+ return
+ ;;
+ --track|-I|--tests-information|--max-width|--timeout|--stop-time)
+ # argument required but no completions available
+ return
+ ;;
+ -R|--tests-regex|-E|--exclude-regex)
+ COMPREPLY=( $( compgen -W '$( ctest -N 2>/dev/null |
+ grep "^ Test" 2>/dev/null | cut -d: -f 2 )' -- "$cur" ) )
+ return
+ ;;
+ -D|--dashboard)
+ if [[ $cur == @(Experimental|Nightly|Continuous)* ]]; then
+ local model action
+ action=${cur#@(Experimental|Nightly|Continuous)}
+ model=${cur%"$action"}
+ COMPREPLY=( $( compgen -W 'Start Update Configure Build Test
+ Coverage Submit MemCheck' -P "$model" -- "$action" ) )
+ else
+ COMPREPLY=( $( compgen -W 'Experimental Nightly Continuous' \
+ -- "$cur" ) )
+ compopt -o nospace
+ fi
+ return
+ ;;
+ -M|--test-model)
+ COMPREPLY=( $( compgen -W 'Experimental Nightly Continuous' -- \
+ "$cur" ) )
+ return
+ ;;
+ -T|--test-action)
+ COMPREPLY=( $( compgen -W 'Start Update Configure Build Test
+ Coverage Submit MemCheck' -- "$cur" ) )
+ return
+ ;;
+ -S|--script|-SP|--script-new-process)
+ _filedir '@(cmake|ctest)'
+ return
+ ;;
+ --interactive-debug-mode)
+ COMPREPLY=( $( compgen -W '0 1' -- "$cur" ) )
+ return
+ ;;
+
+ --help-command)
+ COMPREPLY=( $( compgen -W '$( ctest --help-command-list 2>/dev/null|
+ grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-manual)
+ COMPREPLY=( $( compgen -W '$( ctest --help-manual-list 2>/dev/null|
+ grep -v "^ctest version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+ return
+ ;;
+ --help-module)
+ COMPREPLY=( $( compgen -W '$( ctest --help-module-list 2>/dev/null|
+ grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-policy)
+ COMPREPLY=( $( compgen -W '$( ctest --help-policy-list 2>/dev/null |
+ grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-property)
+ COMPREPLY=( $( compgen -W '$( ctest --help-property-list \
+ 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-variable)
+ COMPREPLY=( $( compgen -W '$( ctest --help-variable-list \
+ 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --preset)
+ local IFS=$'\n'
+ local quoted
+ printf -v quoted %q "$cur"
+ COMPREPLY=( $( compgen -W '$( ctest --list-presets 2>/dev/null |
+ grep -o "^ \".*\"" | sed \
+ -e "s/^ //g" \
+ -e "s/\"//g" \
+ -e "s/ /\\\\ /g" )' -- "$quoted" ) )
+ return
+ ;;
+ esac
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $(compgen -W '$( _parse_help "$1" --help )' -- ${cur}) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
+ [[ $COMPREPLY ]] && return
+ fi
+
+ _filedir
+} &&
+complete -F _ctest ctest
+
+# ex: ts=4 sw=4 et filetype=sh
diff --git a/cmake/share/cmake-3.27/Help/command/add_library.rst b/cmake/share/cmake-3.27/Help/command/add_library.rst
deleted file mode 100644
index 6ca29830..00000000
--- a/cmake/share/cmake-3.27/Help/command/add_library.rst
+++ /dev/null
@@ -1,268 +0,0 @@
-add_library
------------
-
-.. only:: html
-
- .. contents::
-
-Add a library to the project using the specified source files.
-
-Normal Libraries
-^^^^^^^^^^^^^^^^
-
-.. code-block:: cmake
-
- add_library( [STATIC | SHARED | MODULE]
- [EXCLUDE_FROM_ALL]
- [