From 4d424a68d0a8945b3dc826376a54c558a474055c Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 3 Jun 2021 18:13:22 +0200 Subject: [PATCH] projectile: Enable CMake presets and remove custom CMake commands. --- init.d/programming/common.el | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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