projectile: Enable CMake presets and remove custom CMake commands.

This commit is contained in:
tastytea 2021-06-03 18:13:22 +02:00
parent 994efd185c
commit 4d424a68d0
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 10 deletions

View File

@ -106,17 +106,9 @@ Ignores ARGS."
:custom ((projectile-switch-project-action 'my/switch-project)
(projectile-completion-system 'ivy)
(projectile-indexing-method 'hybrid) ; Allow filtering.
(projectile-globally-ignored-file-suffixes '("~" "#")))
(projectile-globally-ignored-file-suffixes '("~" "#"))
(projectile-enable-cmake-presets t))
: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)
;; Mark variables as safe. Prevents prompts with .dir-locals.el.
(put 'projectile-project-compilation-cmd