Update CMake commands.

This commit is contained in:
tastytea 2021-06-01 23:31:58 +02:00
parent 634bc6bd50
commit dc98e20fe2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -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"))