Function: projectile--cmake-select-command

projectile--cmake-select-command is a byte-compiled function defined in projectile.el.

Signature

(projectile--cmake-select-command COMMAND-TYPE)

Documentation

Select a CMake command preset or a manual CMake command.

The selection is done like this:

- If projectile--cmake-use-commands-presets for COMMAND-TYPE returns true, and
there is at least one preset available for COMMAND-TYPE, the user is prompted to select a name of a command preset, or opt a manual command by selecting projectile--cmake-no-preset.

- Else projectile--cmake-no-preset is used.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--cmake-select-command (command-type)
  "Select a CMake command preset or a manual CMake command.

The selection is done like this:

- If `projectile--cmake-use-commands-presets' for COMMAND-TYPE returns true, and
there is at least one preset available for COMMAND-TYPE, the user is prompted to
select a name of a command preset, or opt a manual command by selecting
`projectile--cmake-no-preset'.

- Else `projectile--cmake-no-preset' is used."
  (if-let* ((use-presets (projectile--cmake-use-command-presets command-type))
           (preset-names (projectile--cmake-command-preset-names command-type)))
      (projectile-completing-read
       "Use preset: "
       (append preset-names `(,projectile--cmake-no-preset))
       :caller nil)
    projectile--cmake-no-preset))