diff --git a/init.d/programming/common.el b/init.d/programming/common.el index 8c224bf..c716a68 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -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