Emacs: Remove my/cmake-compile-command.
Set projectile-project-compilation-cmd directly.
This commit is contained in:
parent
8ba9ebf228
commit
7e8cacaa5f
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -104,11 +104,6 @@
|
||||||
purpose-set-window-purpose-dedicated-p)
|
purpose-set-window-purpose-dedicated-p)
|
||||||
:diminish projectile-mode
|
:diminish projectile-mode
|
||||||
:init (progn
|
: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)
|
(defun my/projectile-enable-caching? (&rest args)
|
||||||
"Turn on caching for certain projects.
|
"Turn on caching for certain projects.
|
||||||
Ignores ARGS."
|
Ignores ARGS."
|
||||||
|
@ -153,7 +148,9 @@ collapse other projects."
|
||||||
(projectile-globally-ignored-file-suffixes '("~")))
|
(projectile-globally-ignored-file-suffixes '("~")))
|
||||||
:config (progn
|
:config (progn
|
||||||
(setq projectile-project-compilation-cmd
|
(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"))
|
" && cd tests && ctest -Q"))
|
||||||
(projectile-mode +1)
|
(projectile-mode +1)
|
||||||
;; Mark variables as safe. Prevents prompts with .dir-locals.el.
|
;; Mark variables as safe. Prevents prompts with .dir-locals.el.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user