-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
97 lines (97 loc) · 2.95 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"version": 3,
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "vcpkg",
"inherits": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "gcc_clang_common_sanitizer_configs",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"inherits": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo;MinSizeRel;ASan;UBSan;TSan",
"CMAKE_CXX_FLAGS_ASAN": "-fsanitize=address -g -O0",
"CMAKE_CXX_FLAGS_UBSAN": "-fsanitize=undefined -O0",
"CMAKE_CXX_FLAGS_TSAN": "-fsanitize=thread -O0"
}
},
{
"name": "clang",
"inherits": "gcc_clang_common_sanitizer_configs",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo;MinSizeRel;ASan;UBSan;TSan;MSan",
"CMAKE_CXX_FLAGS_MSAN": "-fsanitize=memory -O0"
}
},
{
"name": "gcc",
"inherits": "gcc_clang_common_sanitizer_configs",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "msvc",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"inherits": "base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl",
"CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo;MinSizeRel;ASan",
"CMAKE_CXX_FLAGS_ASAN": "/fsanitize=address"
}
},
{
"name": "clang_vcpkg",
"inherits": [
"vcpkg",
"clang"
]
},
{
"name": "gcc_vcpkg",
"inherits": [
"vcpkg",
"gcc"
]
},
{
"name": "msvc_vcpkg",
"inherits": [
"vcpkg",
"msvc"
]
}
]
}