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:
@@ -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++")))))))
|
|
||||||
+67
-51
@@ -1,54 +1,70 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"cmakeMinimumRequired": {
|
"cmakeMinimumRequired": {
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 21,
|
"minor": 21,
|
||||||
"patch": 0
|
"patch": 0
|
||||||
|
},
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"binaryDir": "build",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_C_COMPILER": "clang",
|
||||||
|
"CMAKE_CXX_COMPILER": "clang++",
|
||||||
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
|
||||||
|
"FETCHCONTENT_FULLY_DISCONNECTED": "OFF"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"configurePresets": [
|
{
|
||||||
{
|
"name": "clang-release",
|
||||||
"name": "default",
|
"inherits": "default",
|
||||||
"generator": "Ninja",
|
"cacheVariables": {
|
||||||
"binaryDir": "build",
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
"cacheVariables": {
|
}
|
||||||
"CMAKE_C_COMPILER": "clang",
|
},
|
||||||
"CMAKE_CXX_COMPILER": "clang++",
|
{
|
||||||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
|
"name": "clang-debug",
|
||||||
"FETCHCONTENT_FULLY_DISCONNECTED": "OFF"
|
"inherits": "default",
|
||||||
}
|
"cacheVariables": {
|
||||||
},
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
{
|
}
|
||||||
"name": "clang-release",
|
},
|
||||||
"inherits": "default",
|
{
|
||||||
"generator": "Ninja",
|
"name": "gcc-release",
|
||||||
"cacheVariables": {
|
"inherits": "default",
|
||||||
"CMAKE_BUILD_TYPE": "Release"
|
"cacheVariables": {
|
||||||
}
|
"CMAKE_C_COMPILER": "gcc",
|
||||||
},
|
"CMAKE_CXX_COMPILER": "g++",
|
||||||
{
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
"name": "clang-debug",
|
}
|
||||||
"inherits": "default",
|
},
|
||||||
"generator": "Ninja",
|
{
|
||||||
"cacheVariables": {
|
"name": "gcc-debug",
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
"inherits": "default",
|
||||||
}
|
"cacheVariables": {
|
||||||
}
|
"CMAKE_C_COMPILER": "gcc",
|
||||||
],
|
"CMAKE_CXX_COMPILER": "g++",
|
||||||
"buildPresets": [
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
{
|
}
|
||||||
"name": "default",
|
}
|
||||||
"configurePreset": "default",
|
],
|
||||||
"jobs": 10
|
"buildPresets": [
|
||||||
},
|
{
|
||||||
{
|
"name": "default",
|
||||||
"name": "clang-release",
|
"configurePreset": "default",
|
||||||
"inherits": "default",
|
"jobs": 10
|
||||||
"configuration": "Release"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "release",
|
||||||
"name": "clang-debug",
|
"inherits": "default",
|
||||||
"inherits": "default",
|
"configuration": "Release"
|
||||||
"configuration": "Debug"
|
},
|
||||||
}
|
{
|
||||||
]
|
"name": "debug",
|
||||||
|
"inherits": "default",
|
||||||
|
"configuration": "Debug"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user