diff --git a/init.d/programming/common.el b/init.d/programming/common.el index d28e23f..840c947 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -110,10 +110,10 @@ Ignores ARGS." :config (progn (setq projectile-project-compilation-dir "build") (setq projectile-project-configure-cmd - "cmake -GUnix\\ Makefiles -DCMAKE_BUILD_TYPE=Debug \ --DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_TESTS=YES ..") + "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 . -- -j" + (concat "cmake --build . --parallel " (substring (shell-command-to-string "nproc --ignore=1") 0 -1) " && cd tests && ctest -Q"))