Function: projection-cmake-run-configure

projection-cmake-run-configure is an autoloaded and natively compiled function defined in projection-type-cmake.el.

Signature

(projection-cmake-run-configure)

Documentation

Configure command generator for CMake projects.

Source Code

;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-type-cmake.el
;; CMake compilation commands.

;; The configure step takes the source directory and the output build
;; directory.

(defun projection-cmake-run-configure ()
  "Configure command generator for CMake projects."
  (let-alist (projection-cmake--command-options 'configure)
    (projection--join-shell-command
     `(,@(projection--env-shell-command-prefix
          (append .environment projection-cmake-environment-variables))
       "cmake"
       "-S" "."
       ,@(when-let* ((build (projection-cmake--build-directory)))
           (list "-B" build))
       ,@(when-let* ((log-level (projection-cmake--configure-log-level)))
           (list (concat "--log-level=" log-level)))
       ,@(when-let* ((build-type (projection-cmake--build-type)))
           (list (concat "-DCMAKE_BUILD_TYPE=" build-type)))
       ,@.args
       ,@projection-cmake-configure-options))))