-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathCMakePresets.json
111 lines (111 loc) · 3.68 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"include": [
],
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
},
"environment": {},
"vendor": {}
},
{
"name": "asan",
"displayName": "Debug with address sanitizer",
"description": "ASAN build using Ninja generator",
"inherits": "default",
"binaryDir": "${sourceDir}/build/asan",
"cacheVariables": {
"SANITIZE_ADDRESS": "ON"
}
},
{
"name": "rpm",
"displayName": "rpm",
"description": "rpm",
"generator": "Ninja",
"binaryDir": "build/rpm",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_BUILD_TYPE":"RelWithDebInfo",
"CMAKE_EXPORT_COMPILE_COMMANDS":true,
"CMAKE_SHARED_LINKER_FLAGS":"-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1",
"CMAKE_EXE_LINKER_FLAGS":"-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1",
"CMAKE_INSTALL_PREFIX":"${sourceDir}/install/rpm",
"CMAKE_C_FLAGS": "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer",
"CMAKE_CXX_FLAGS": "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
},
"environment": {
},
"vendor": {}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "rpm",
"configurePreset": "rpm"
},
{
"name": "asan",
"configurePreset": "asan"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "Asan",
"configurePreset": "asan",
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"environment": {
"ASAN_OPTIONS": "detect_leaks=0,start_deactivated=true,replace_str=true,verify_asan_link_order=false"
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "rpm",
"configurePreset": "rpm",
"inherits": "default"
}
],
"packagePresets": [
{
"name": "default",
"configurePreset": "default",
"generators": []
}
],
"workflowPresets": [],
"vendor": {}
}