remove dir locals, use presets instead

`projectile-configure-project' in conjunction with CMakePresets.json
will allow to configure the project.
`projectile-compile-project' does sth similar for the compile command.

This is equivalent to something like
~cmake --preset clang-debug && cmake --build build --preset clang-debug~
This commit is contained in:
Maximilian Kueffner
2025-08-19 00:27:41 +02:00
parent caa9f12abf
commit 3cfa724c8c
2 changed files with 67 additions and 59 deletions
-8
View File
@@ -1,8 +0,0 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")
((nil . ((compile-command .
(eval
(format "cmake -B build -S . -DCMAKE_C_COMIPLER=%S -DCMAKE_CXX_COMIPLER=%S -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DFETCHCONTENT_FULLY_DISCONNECTED=OFF -G Ninja && cmake --build build"
(executable-find "clang")
(executable-find "clang++")))))))
+20 -4
View File
@@ -20,7 +20,6 @@
{
"name": "clang-release",
"inherits": "default",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
@@ -28,10 +27,27 @@
{
"name": "clang-debug",
"inherits": "default",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "gcc-release",
"inherits": "default",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "gcc-debug",
"inherits": "default",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug"
}
}
],
"buildPresets": [
@@ -41,12 +57,12 @@
"jobs": 10
},
{
"name": "clang-release",
"name": "release",
"inherits": "default",
"configuration": "Release"
},
{
"name": "clang-debug",
"name": "debug",
"inherits": "default",
"configuration": "Debug"
}