-
Notifications
You must be signed in to change notification settings - Fork 83
/
CMakePresets.json
68 lines (68 loc) · 2.1 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"version": 3,
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build of all the code using Ninja",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/.build/default",
"cacheVariables": {
"TT_METAL_BUILD_TESTS": {"value": "TRUE"},
"TTNN_BUILD_TESTS": {"value": "TRUE"},
"TT_UMD_BUILD_TESTS": {"value": "TRUE"},
"BUILD_PROGRAMMING_EXAMPLES": {"value": "TRUE"},
"BUILD_TT_TRAIN": {"value": "TRUE"},
"CMAKE_DISABLE_PRECOMPILE_HEADERS": {"value": "TRUE"},
"ENABLE_CCACHE": {"value": "TRUE"},
"TT_UNITY_BUILDS": {"value": "FALSE"}
}
},
{
"name": "clang-tidy",
"inherits": "default",
"description": "Run Clang Tidy",
"binaryDir": "${sourceDir}/.build/clang-tidy",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": {"value": "clang-tidy-17;--warnings-as-errors=*"},
"CMAKE_VERIFY_INTERFACE_HEADER_SETS": {"value": "TRUE"},
"CMAKE_EXPORT_COMPILE_COMMANDS": {"value": "TRUE"}
}
},
{
"name": "clang-tidy-fix",
"inherits": "clang-tidy",
"description": "Run Clang Tidy and apply fixes",
"binaryDir": "${sourceDir}/.build/clang-tidy-fix",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": {"value": "clang-tidy-17;--fix"}
}
}
],
"buildPresets": [
{
"name": "dev",
"configurePreset": "default",
"configuration": "RelWithDebInfo",
"targets": ["all"]
},
{
"name": "debug",
"configurePreset": "default",
"configuration": "Debug",
"targets": ["all"]
},
{
"name": "clang-tidy",
"configurePreset": "clang-tidy",
"configuration": "RelWithDebInfo",
"nativeToolOptions": ["-k0"]
},
{
"name": "clang-tidy-fix",
"configurePreset": "clang-tidy-fix",
"configuration": "RelWithDebInfo",
"nativeToolOptions": ["-k0"]
}
]
}