projectile: Enable CMake presets and remove custom CMake commands.
This commit is contained in:
parent
994efd185c
commit
4d424a68d0
|
@ -106,17 +106,9 @@ Ignores ARGS."
|
||||||
:custom ((projectile-switch-project-action 'my/switch-project)
|
:custom ((projectile-switch-project-action 'my/switch-project)
|
||||||
(projectile-completion-system 'ivy)
|
(projectile-completion-system 'ivy)
|
||||||
(projectile-indexing-method 'hybrid) ; Allow filtering.
|
(projectile-indexing-method 'hybrid) ; Allow filtering.
|
||||||
(projectile-globally-ignored-file-suffixes '("~" "#")))
|
(projectile-globally-ignored-file-suffixes '("~" "#"))
|
||||||
|
(projectile-enable-cmake-presets t))
|
||||||
:config (progn
|
:config (progn
|
||||||
(setq projectile-project-compilation-dir "build")
|
|
||||||
(setq projectile-project-configure-cmd
|
|
||||||
"cmake -S .. -B . -GUnix\\ Makefiles -DCMAKE_BUILD_TYPE=Debug \
|
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_TESTS=YES")
|
|
||||||
(setq projectile-project-compilation-cmd
|
|
||||||
(concat "cmake --build . --parallel "
|
|
||||||
(substring
|
|
||||||
(shell-command-to-string "nproc --ignore=1") 0 -1)
|
|
||||||
" && 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.
|
||||||
(put 'projectile-project-compilation-cmd
|
(put 'projectile-project-compilation-cmd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user