-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
120 lines (113 loc) · 5.15 KB
/
CMakePresets.json
File metadata and controls
120 lines (113 loc) · 5.15 KB
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
{
"version": 6,
"cmakeMinimumRequired": { "major": 3, "minor": 25, "patch": 0 },
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"ASTROFORCES_BUILD_TESTS": "ON"
}
},
{
"name": "base-debug",
"hidden": true,
"inherits": ["base"],
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" }
},
{
"name": "base-release",
"hidden": true,
"inherits": ["base"],
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" }
},
{
"name": "base-asan",
"hidden": true,
"inherits": ["base-debug"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address"
}
},
{
"name": "base-ubsan",
"hidden": true,
"inherits": ["base-debug"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsanitize=undefined -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=undefined",
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=undefined"
}
},
{
"name": "base-profile",
"hidden": true,
"inherits": ["base-release"],
"cacheVariables": { "CMAKE_CXX_FLAGS_RELEASE": "-O2 -g -fno-omit-frame-pointer" }
},
{
"name": "base-debug-strict",
"hidden": true,
"inherits": ["base-debug"],
"cacheVariables": { "ASTROFORCES_TEST_REQUIRE_EXTERNAL_DATA": "ON" }
},
{ "name": "macos-debug", "inherits": ["base-debug"] },
{ "name": "macos-debug-strict", "inherits": ["base-debug-strict"] },
{ "name": "macos-release", "inherits": ["base-release"] },
{ "name": "macos-asan", "inherits": ["base-asan"] },
{ "name": "macos-ubsan", "inherits": ["base-ubsan"] },
{ "name": "macos-profile", "inherits": ["base-profile"] },
{ "name": "linux-debug", "inherits": ["base-debug"] },
{ "name": "linux-debug-strict", "inherits": ["base-debug-strict"] },
{ "name": "linux-release", "inherits": ["base-release"] },
{ "name": "linux-asan", "inherits": ["base-asan"] },
{ "name": "linux-ubsan", "inherits": ["base-ubsan"] },
{ "name": "linux-profile", "inherits": ["base-profile"] },
{ "name": "windows-debug", "inherits": ["base-debug"] },
{ "name": "windows-debug-strict", "inherits": ["base-debug-strict"] },
{ "name": "windows-release", "inherits": ["base-release"] },
{
"name": "windows-asan",
"inherits": ["base-debug"],
"cacheVariables": { "CMAKE_CXX_FLAGS": "/fsanitize=address" }
},
{ "name": "windows-profile", "inherits": ["base-profile"] }
],
"buildPresets": [
{ "name": "macos-debug", "configurePreset": "macos-debug" },
{ "name": "macos-debug-strict", "configurePreset": "macos-debug-strict" },
{ "name": "macos-release", "configurePreset": "macos-release" },
{ "name": "macos-asan", "configurePreset": "macos-asan" },
{ "name": "macos-ubsan", "configurePreset": "macos-ubsan" },
{ "name": "macos-profile", "configurePreset": "macos-profile" },
{ "name": "linux-debug", "configurePreset": "linux-debug" },
{ "name": "linux-debug-strict", "configurePreset": "linux-debug-strict" },
{ "name": "linux-release", "configurePreset": "linux-release" },
{ "name": "linux-asan", "configurePreset": "linux-asan" },
{ "name": "linux-ubsan", "configurePreset": "linux-ubsan" },
{ "name": "linux-profile", "configurePreset": "linux-profile" },
{ "name": "windows-debug", "configurePreset": "windows-debug" },
{ "name": "windows-debug-strict", "configurePreset": "windows-debug-strict" },
{ "name": "windows-release", "configurePreset": "windows-release" },
{ "name": "windows-asan", "configurePreset": "windows-asan" },
{ "name": "windows-profile", "configurePreset": "windows-profile" }
],
"testPresets": [
{ "name": "macos-debug", "configurePreset": "macos-debug", "output": { "outputOnFailure": true } },
{ "name": "macos-debug-strict", "configurePreset": "macos-debug-strict", "output": { "outputOnFailure": true } },
{ "name": "macos-asan", "configurePreset": "macos-asan", "output": { "outputOnFailure": true } },
{ "name": "macos-ubsan", "configurePreset": "macos-ubsan", "output": { "outputOnFailure": true } },
{ "name": "linux-debug", "configurePreset": "linux-debug", "output": { "outputOnFailure": true } },
{ "name": "linux-debug-strict", "configurePreset": "linux-debug-strict", "output": { "outputOnFailure": true } },
{ "name": "linux-asan", "configurePreset": "linux-asan", "output": { "outputOnFailure": true } },
{ "name": "linux-ubsan", "configurePreset": "linux-ubsan", "output": { "outputOnFailure": true } },
{ "name": "windows-debug", "configurePreset": "windows-debug", "output": { "outputOnFailure": true } },
{ "name": "windows-debug-strict", "configurePreset": "windows-debug-strict", "output": { "outputOnFailure": true } },
{ "name": "windows-asan", "configurePreset": "windows-asan", "output": { "outputOnFailure": true } }
]
}