-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
123 lines (123 loc) · 4.66 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"version": 2,
"configurePresets": [
{
"name": "debug-clang",
"displayName": "debug clang",
"description": "cmake config for clang debug",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_FLAGS": "-stdlib=libc++ -fstack-usage",
"CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++",
"myproject_ENABLE_CLANG_BUILD_ANALYZER": "OFF"
}
},
{
"name": "release-clang",
"displayName": "release clang",
"description": "cmake config for clang release",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_FLAGS": "-stdlib=libc++ -fstack-usage",
"CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++",
"myproject_ENABLE_HARDENING": "OFF",
"myproject_ENABLE_CLANG_BUILD_ANALYZER": "OFF"
}
},
{
"name": "debug-gcc",
"displayName": "debug gcc",
"description": "cmake config for gcc debug",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "release-gcc",
"displayName": "release gcc",
"description": "cmake config for gcc release",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"myproject_ENABLE_HARDENING": "OFF"
}
},
{
"name": "debug-gcc-fortify-source",
"displayName": "debug gcc fortify source",
"description": "cmake config for gcc debug with fortify source",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"myproject_ENABLE_FORTIFY_SOURCE_AND_SET_OPTIMIZATION_TO_O0": "ON"
}
},
{
"name": "memory-sanitizer-gcc",
"displayName": "memory sanitizer",
"description": "cmake config for gcc debug with memory sanitizer",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"myproject_ENABLE_SANITIZER_MEMORY": "ON"
}
},
{
"name": "other-sanitizers-clang",
"displayName": "other sanitizers",
"description": "cmake config for clang debug with other sanitizers",
"generator": "Ninja",
"binaryDir": "build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake",
"BUILD_TESTS": "True",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"myproject_ENABLE_SANITIZER_ADDRESS": "ON",
"myproject_ENABLE_SANITIZER_LEAK": "ON"
}
}
],
"testPresets": [
{
"name": "sadfsa",
"description": "",
"displayName": "",
"configurePreset": "debug-gcc"
}
]
}