Emacs: Remove my/cmake-compile-command.

Set projectile-project-compilation-cmd directly.
This commit is contained in:
tastytea 2020-12-05 10:56:13 +01:00
parent 8ba9ebf228
commit 7e8cacaa5f

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-12-01T17:18:15+0100>
;; Time-stamp: <2020-12-05T10:55:12+0100>
;;; Commentary:
@ -104,11 +104,6 @@
purpose-set-window-purpose-dedicated-p)
:diminish projectile-mode
:init (progn
(defvar my/cmake-compile-command ; cmake command for compiling with
(concat "cmake --build . -- -j" ; 1 core less than available.
(substring
(shell-command-to-string "nproc --ignore=1") 0 -1)))
(defun my/projectile-enable-caching? (&rest args)
"Turn on caching for certain projects.
Ignores ARGS."
@ -153,7 +148,9 @@ collapse other projects."
(projectile-globally-ignored-file-suffixes '("~")))
:config (progn
(setq projectile-project-compilation-cmd
(concat my/cmake-compile-command
(concat "cmake --build . -- -j"
(substring
(shell-command-to-string "nproc --ignore=1") 0 -1)
" && cd tests && ctest -Q"))
(projectile-mode +1)
;; Mark variables as safe. Prevents prompts with .dir-locals.el.